This is part 4 of a 4 part mini series “How To” for configuring WordPress on Ubuntu which is hosted in Microsoft Azure.
The 4 Parts are broken in to the following sections:
Trouble shooting the common issues
Left “as is” WordPress will work, however there are a few “Quirks” to be aware of:
- If you forget your password and want to email yourself a link to reset it it will not work
- Email notifications of new comments etc… will not work either, infact no email functions will work
- Permalinks will not work.
Fix the email issue:
To fix the email issue you will need to install PostFix do this by running the following command:
sudo apt-get install mailutils
There are several ways to configure PostFix however the way to configure it for the server in this case is to set it up as an Internet Site:
Specify the domain name that will be used:
Then edit the /etc/postfix/main.cf file:
Ensure that the inet_interfaces is set to = localhost
Press Ctrl+X to save and exit:
Restart the PostFix service by running:
sudo service postfix restart
WordPress can then send email notifications. Please add the public IP Address of your WordPress site to your SPF Record as you will possibly have some mail delivery issues as mail filters may well pick it up as Spoofing.
Fix the Permalinks
When you change the Permalink settings you will most likely get this error:
This is a simple fix you will need to make a change to the site config and enable mod rewrite.
sudo a2enmod rewrite
Then edit the conf file and add the following before </Virtualhost> line at the bottom:
<Directory /var/www/allthings365.co.uk/> AllowOverride All </Directory>
Once done save and exit and then run:
sudo service apache2 restart
Jobs a good’un it will the enable PermaLinks to work.
Another issue is that when you go to install a new theme or update a plug in you may well receive the following:
The fix for this is to run the following command
sudo chown -R www-data:www-data /var/www
When you next go to update/install a plugin/theme you will not be prompted for connection details!
And that is it you now how a fully functioning Ubuntu LAMP server running your own WordPress blog