Enabling mod_rewrite for Apache2 in Debian
There’s an excellent web page entitled Debian Administration :: Upgrading from Woody to Sarge: Part 4 - Apache2 that I wish I had seen much sooner. This website states how to add mod_rewrite to an Apache2 installation in Debian.
Now that this has been enabled, I hope that the permalink structure looks a little more pretty than some cold and non-meaningful numbers, though the old permalinks will no longer work. Pretty non-permanent perma-links, but that’s my fault for not having figured out how to enable mod_rewrite on my system sooner.
Ah well, sorry for any inconvenience!
Over and out,
Kenny
March 31st, 2005 at 11:35 am
And, indeed, mod_rewrite is now loaded into Apache2, but the wordpress custom permalink structure does NOT work! (note the /index.php/ part of the URI, it allow’s nicer a URI without mod_rewrite)
-Kenny
March 31st, 2005 at 12:25 pm
Have you added write access to your .htaccess file? Chmod 666 your root .htaccess file, or Wordpress can’t add the redirects necessary to change your permalinks. After submitting the changed permalink structure, if you scroll to the bottom of the page it should have a textbox full of instructions if it didn’t write successfully (regardless of access permissions).
March 31st, 2005 at 15:28 pm
Woah there G, let’s not get hasty with world-writable files. If the problem is that your apache process can’t write to your .htaccess file, then chown the file appropriately. (For example apache:apache, nobody:nogroup, as applicable from your User/Group main configuration directives).
For fun, you could try running the perchild MPM under Apache 2 and play with the AssignUserID directive. Process space explosion is the biggest risk with this MPM (and the fact that it’s marked as experimental), but in my opinion privilege splitting is a huge benefit on any site with multiple untrusted virtual hosts. (And even the majority of those with trusted virtual hosts.)
Stoobe
March 31st, 2005 at 17:04 pm
Or manually add the rewrite rules that WP gives you. Whatever is easier.
April 1st, 2005 at 6:39 am
Thank you, Gary and WordStress, problem is solved. In fact, the URI was being re-written effectively however the my problem was with the configuration of the apache2 virtual host.
I should have enabled the AllowOverride directive; as shown in the Worpress Codex of Wisdom. I did not remeber that this was not done for the wordpress directory, since I recently installed gallery, and set the directive for the gallery install. Indeed, a silly mistake. :)
Kenny