links don't work wordpress on LAMP – apache2 config
-
I had a number of sites on a hosting package which I am in the process of moving to a Digital Ocean droplet running Ubuntu, Apache, php and MySQL.
I had the common problem of all permalinks being broken and followed the advise to recreate them by saving them from the wp dashboard.
This wasn’t working although I could see that it was creating a .htaccess file in the public_html folder.
I also created a new test site and found that could not create links either so I knew it was not a migration issue.
After a lot of searching I and some help from someone who knows a lot more about LAMP servers I found the solution.
It seemed like something wasn’t allowing wordpress to modify the database when permalinks were saved.
Solution:
There was a problem with the Apache configuration which for some reason wasn’t mentioned in the Digital Ocean guides to setting up LAMP.
In the file /etc/apache2/apache2.conf I changed ‘AllowOverride’ from ‘None’ to ‘All’:
Now it looks like this:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>Hopefully this will be helpful to someone using WordPress on LAMP.
- The topic ‘links don't work wordpress on LAMP – apache2 config’ is closed to new replies.