mod_rails setup issues and solution

So I was migrating my server over to Debian Lenny from Etch and ran into some interesting problems along the way. The first of which is related to an open ticket on the mod_rails issue tracker. The conflict appears to be with Wordpress permalinks, .htaccess and mod_rails. However, without my knowing when I installed mod_rails (a.k.a Passenger) via the script it disabled by rewrite module. So when I went back to check this blog, running wordpress, all the permalinks were broken. I had tried everything from setting ‘RailsAutoDetect off’ and ‘RailsAllowModRewrite on’, however neither of these are even needed. I just had to issue the simple commands:
[code language="shell"]sudo a2enmod rewrite
sudo /etc/init.d/apache2 restart[/code]
After these two commands, you can stop pulling out your hair and begin shaking your fist at the sneaky passenger/mod_rails installer. Just goes to show that automated installers are not always the holy grail.



One Response to “mod_rails setup issues and solution”

  1. greg Says:

    hey,

    I posted the original ticket – I wish I had figured out whatever you have figured out above! I was indeed tearing my hair out…

    thanks for sharing your fix! I’ll try it out when I update my vm ubuntu sometime :)

    // greg

Leave a Reply