Issue :
We know that the default directory for eaccelerator cache is “/tmp/eaccelerator”. In most of the cases, this directory causing the /tmp to fill and that will cause many issues. In such cases it’s better to change the cache directory to another large partition.
Solution:
Use the following command to find cache director specified in “php.ini”‘ file.
# grep eaccelerator.cache_dir /usr/local/lib/php.ini
i.e;
root@tricks[~]# grep eaccelerator.cache_dir /usr/local/lib/php.ini
eaccelerator.cache_dir=”/tmp/eaccelerator”
root@tricks[~]#
Then change it to another directory “/var/eaccelerator” and save the file.
i.e; eaccelerator.cache_dir=”/var/eaccelerator”
Then create the folder “/var/eaccelerator”
# mkdir /var/eaccelerator
After that use the following commands.
#service httpd stop
#rm -rf /tmp/eaccelerator
#service httpd start
That’s all….!!!!
Recent Comments