Hello folks,
I need your experience to setup the best environment for my Wordpress installation in regard to reliability and security. Recently we get 502 errors so that we need to reset the droplets to get back the website.
Situation:
Current Setup:
Can you help me out to have a proper setup, please? Based on the statistic graph the memory is often at 90% (apache2 up to 90%, mysqld up to 20/30%) although we don’t have high traffic and visitors. I’m also not sure what memory limit to set within the php.ini file (1Gb because I have 1GB memory server?). I hope you realize that I am a beginner, so every suggestion and tutorial is appreciated.
Thank you.
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!
Hello,
Your base setup looks OK, you just need more RAM. For example having your PHP memory limit at 512M and only 1024M available means that only two memory demanding processes would exhaust all of your RAM.
I would recommend adjusting your PHP memory 256M or even 128M unless it is required by some of your plugins.
And as you have Memcache I would recommend going for at least 2 or 4 GB of RAM.
But besides that what you could do is:
Regards, Bobby
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.