Permission Problems

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rich86
Forum Newbie
Posts: 15
Joined: Sun Jun 11, 2006 7:30 pm

Permission Problems

Post 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)
User avatar
akimm
Forum Contributor
Posts: 460
Joined: Thu Apr 27, 2006 10:50 am
Location: Ypsilanti Michigan, formally Clipsburgh

Post 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.
rich86
Forum Newbie
Posts: 15
Joined: Sun Jun 11, 2006 7:30 pm

Post 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
Post Reply