Folder permissions problem trying to run a PHP script

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi - I have a file permissions problem with PHP.

I am using a product called Actinic to develop a shopping cart. This
creates a subfolder named ACATALOG into which it loads all of its
files. The permissions for this folder is set to 777.

I have set up a page in the package to call a .PHP page. When I try to
run the PHP page I get the error message:

"A file permissions error has occurred running this script.
Please check that the script and the directory that it's in are only
writable by the site administrator.
If this error persists, please contact the server administrator."

The shared hosting company says that the folder permissions should be
set to 711 drwx--x--x or 755 drwxr-xr-x

I am unable to change the permissions of the folder or put the the
file in a different folder due to the Actinic package constraints.

Is there anything I can do to get this to work?

Any help would be appreciated.

Re: Folder permissions problem trying to run a PHP script

Check the owner and group of the folder ACATALOG. If you have php
working from /var/www/html (or whatever) check the owner and group of
that. It should be apache:apache (or nobody:nobody). Whatever the user
and group of that folder is change it so that ACATALOG  is the same.

Re: Folder permissions problem trying to run a PHP script

Hi sean - thanks for the reply.

I eventually managed to get this working by creating a new directory
in the root that allowed me to set the permissions I wanted.

Quoted text here. Click to load it

Site Timeline