Posts Tagged ‘permalinks’
mod_rails setup issues and solution August 20th, 2008
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.
Tags: .htaccess, mod_rails, passenger, permalinks, Rails, Ruby, wordpress
Posted in Rails, Ruby | Comments (1)


