A fix for Eaccelerator filling up /tmp folder – WHM & CPanel
UPDATE: If you simply want to clean out the /tmp/eaccerlator folder, the following command does the trick on CentOS and RedHat systems.
tmpwatch --mtime --all 336 /tmp/eaccelerator
———–
I just found a fix for the /tmp folder filling up with session files from Eaccelerator.
The trick is to move the cache folder to a larger partition. In our case our /tmp folder is 1GB and it was hitting 90% full regularly.
Login as root :
# pico /usr/lib/php.ini
Find :
eaccelerator.cache_dir=”/tmp/eaccelerator
and change it from /tmp/eaccelerator to /var/cache/eaccelerator and save the file.
# mkdir /var/cache/eaccelerator
#service httpd stop
#rm -rf /tmp/eaccelerator
#service httpd start
No related posts.
Posted in Computers & Internet, Questions Answered3 comments to “A fix for Eaccelerator filling up /tmp folder – WHM & CPanel”
Leave a comment
You need to log in to comment.
2:34 am
Info
You also needed to change the folder permission of eaccelerator at the new location to 1777 for this to work.
7:34 am
Info
You also needed to change the folder permission of eaccelerator at the new location to 1777 for this to work.
2:43 am
muzo
there is no
eaccelerator.cache_dir=”/tmp/eaccelerator
in php.ini.
Is it normal?