Web Hosting Talk







View Full Version : How do you allow scripts to chmod files?


Hobbes
11-16-2002, 01:56 PM
Hi,

I have installed a couple of scripts on my dedi server with ensim on it that need to create and chmod files and directories. Problem is when I run any of the scripts I get the error below -

Warning: chmod failed: Operation not permitted in /home/virtual/site3/fst/var/www/html/banners/admin/index.php on line 920

Is this something to do with file ownership? can anybody point me in the right direction on how to solve this.

Many Thanks

hb-sam
11-17-2002, 12:21 PM
If you try to chmod files that is not owned by the group/user running apache then you will get that error. One way is to let apache own the files/directories you want to chmod.