September 8th, 2009

A fix for Eaccelerator filling up /tmp folder – WHM & CPanel

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

2 Responses to “A fix for Eaccelerator filling up /tmp folder – WHM & CPanel”

  1. Info Says:

    You also needed to change the folder permission of eaccelerator at the new location to 1777 for this to work.

  2. Info Says:

    You also needed to change the folder permission of eaccelerator at the new location to 1777 for this to work.

Leave a Reply