Hello,
I have been running into a few database errors with a brand new install of wordpress and decided to optimise my server by adding swap, and optimising the apache and mysql services.
I was trying to follow this guide http://www.narga.net/optimizing-apachephpmysql-low-memory-server/ when i noticed that my apache install does not seem to have been compiled with the prefork module. I used the automated wordpress on ubuntu 14.04 installer.
Is this an issue? or is the apache install already well optimised that I do not need to optimise the prefork section? or is the config located somewhere else?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
On Ubuntu 16.04 there is no apache2-mpm-prefork. However the mpm_prefork module gets installed when installing apache2. The commands to do this are now:
sudo apt install apache2
sudo a2dismod mpm_event
sudo a2enmod mpm_prefork
sudo service apache2 restart
You need to install the prefork module with:
sudo apt-get install apache2-mpm-prefork
Then make sure it is loaded with:
sudo a2enmod mpm_prefork
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.