Page 1 of 1

Permission Problems

Posted: Sun Nov 05, 2006 5:27 pm
by rich86
Hi,
i have been having a problem running a script that uploads pictures to specific directories since a recent php update. i have been getting these errors:

Warning: chmod() [function.chmod]: Operation not permitted in /home/bfp/public_html/networkers/pictures.php on line 60

Warning: mkdir() [function.mkdir]: Permission denied in /home/bfp/public_html/networkers/pictures.php on line 62

Warning: mkdir() [function.mkdir]: No such file or directory in /home/bfp/public_html/networkers/pictures.php on line 63

Warning: chmod() [function.chmod]: Operation not permitted in /home/bfp/public_html/networkers/pictures.php on line 65


the script changes the current file to 777 permissions then creates a directory (if required) and then goes back to 644.
but i have been getting these errors for a little while now.

I have tried making everything involved 777 manually and making sure working directory is correct but it doesn't seem to help.

I don;t know if this is a server error or a problem i can solve. if it is a server error i know the people who run it so will be able to get them to sort it if i know the problem.

Many thanks
(hope this was the right forum wasn't really sure)

Posted: Sun Nov 05, 2006 5:31 pm
by akimm
Make sure the actual directory is set to 755 and the scripts as well.

I would then suggest, if that doesn't work(which this has been the case for me before) perhaps put all the files into a new directory, before running the PHP make sure everything is right, then try again. If that doesn't work, someone else will probably be able to help you.

Posted: Sun Nov 05, 2006 5:36 pm
by rich86
i have tried making all the folders and files 777, but makes no change.

the same file is used on multiple sub-domains in different directories and all 4 have the same error, a similar script in a different page also has the same error.

thanks anyway