eAccelerator with WHM/CPanel
Wednesday, June 27th, 2007The Problem: The same friend had a problem with installation of eAccelerator on WHM 11.2.0 hosting server. It seems like eAccelerator was installed but phpinfo() showed that caching and optimization is not enabled.
The Solution: It seemed like WHM installed PHP as CGI and that caused the problem. First, I changed PHP to be loaded as Apache Module by editing the httpd.conf. Uncomment the following lines:
LoadModule php5_module libexec/libphp5.so
AddModule mod_php5.c
Restarted Apache Webserver using the command “/etc/init.d/httpd restart” and everything is cool now.