Php – How to clear cache in eAccelerator

centos6PHP

I can't clear the cache in eAccelerator. I have deleted all files from the directory /var/cache/php-eaccelerator/* with the following command:

rm -rf /var/cache/php-eaccelerator/*

But this does not help.
I use CentOs OS.

How can I clear the cache?

Best Answer

In case you still have the sources from compiling eAccelerator, check for the controlpanel script config.php inside the source folder. Make it accessible over your website (protect it from being accessed by anyone with some AuthBasic mechanism or allow from IP.

Edit the file with your favourite editor and change $user and $pw on top of the file. After that, fire it up and you should be able to clean the cache as you want. Think there are some more things you can manipulate with this as well.