Forums / Developer / Clearing cache from command prompt, deletes files from outside www root

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Clearing cache from command prompt, deletes files from outside www root

Author Message

Abdallah Mostafa

Sunday 20 February 2011 3:14:36 am

Hello,

A long time ago I made a batch file to clear Ez cahce from command prompt since it's much faster than Admin interface. I was working very well until a couple of weeks ago when it started to delete files from my hard drive outside the Ez folder and even outside the www root.

I think this happened after I re-installed PHP.

This problem happens on Ez version 4.3, PHP 5.2.6.

Guillaume Kulakowski

Sunday 20 February 2011 8:15:43 am

Do you use symbolic link ?

It's for this, since 4.4 you don't launch eZ script with root user

My blog : http://www.llaumgui.com (not in eZ Publish ;-))
eZC on RHEL : http://blog.famillecollet.com/pages/Config-en
eZC on Fedora : just "yum install php-channel-ezc"

Abdallah Mostafa

Monday 21 February 2011 9:54:07 am

I'm on Windows Vista and my batch file looks like this

d:
cd\projects\hu
php bin\php\ezcache.php --clear-all --purge
pause

My Ez installation is 4.3 and this batch file used to work fine until (I think) I re-installed PHP.

Is there something I'm missing in PHP configuration perhaps?