Whenever I change my permalink option from the default to /%postname%/, it results into my page cannot be found.
Wordpress would complain that it cannot modify the .htaccess (because there was none), so I created it in /var/www/. The .htaccess has the same owner / permissions as my wordpress folder.
Please help, I've been trying to fix this for 3 days now.
Do I also need to change the mod_rewrite somewhere?
EDIT:
Solved!
inside /var/www/.htaccess Add the line: Options +FollowSymLinks
for the mod_rewrite problem:
Check for Apache Mod_ReWrite – Following lists all the loaded modules
sudo apache2ctl -M Enable Mod_Rewrite
sudo ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load Restart Apache view sourceprint? 1 sudo /etc/init.d/apache2 restart
courtesy of https://usingnix.wordpress.com/2010/12/21/apache-mod_rewrite-wp-permalinks/
AllowRide All
or (if I remember right)AllowOveride File
in the server configuration. Are those conditions met?