Low-traffic WordPress website on Apache keeps crashing server

OC2PS

Registered
Oct 29, 2012
2
0
1
cPanel Access Level
Root Administrator
I have recently moved my low-moderate traffic (1000 UAUs, 5000 pageviews on a busy day) website from shared hosting to a Centos 6 64-bit VPS with Apache and cPanel running on 4 quad-core processor (likely oversold) and 3GB memory (Xen).

We've had problems from the beginning. The server keeps crashing. It seems PHP keeps expanding till it consumes all the memory and crashes the server.

Some folks have suggested that I should abandon Apache/cPanel/PHP/mySQL and go with nginX/Varnish/PHP-FPM/SQLite. But that's just not possible for me as I am not very tech savvy and need a simple GUI like cPanel to be able to manage the mundane management tasks (can't afford to hire system administrator or get fully managed hosting).

I have come across several posts discussing optimization of Apache for WordPress. But all of these lead to articles that are pretty dated such as this ~4 year old one from Jan 2009 - Optimize Apache for WordPress — The Theme Foundry

The article is pretty detailed and seems helpful, but I stumble even on the first step. My httpd.conf only has 2 loadmodule commands
Code:
LoadModule fastinclude_module modules/mod_fastinclude.so  
LoadModule bwlimited_module modules/mod_bwlimited.so
So I go total bust right there. Further, my httpd.conf says

Direct modifications to the Apache configuration file may be lost upon subsequent regeneration of the configuration file. To have modifications retained, all modifications must be checked into the configuration system by running: /usr/local/cpanel/bin/apache_conf_distiller
I am having trouble finding where to change the modules in WHM.

Please can someone help me with updated guidelines on how to optimize Apache for WordPress? Many thanks!

P.S. The WordPress installation also has WP Super Cache installed.
P.P.S. I also have phpBB, OpenCart, and Menalto Gallery installed.
 

john009

Registered
Nov 15, 2019
1
0
0
usa
cPanel Access Level
Website Owner
one of my friend was facing same issue then he brought website maintenance services from wpincare and now his site is working fine
 
Last edited by a moderator: