Folder permissions problem trying to run a PHP script

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • skinnybloke

    Folder permissions problem trying to run a PHP script

    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.
  • Sean

    #2
    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.

    Comment

    • skinnybloke

      #3
      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.




      On 2 Dec 2005 04:57:46 -0800, "Sean" <oreilly.sean@g mail.com> wrote:
      [color=blue]
      >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.[/color]

      Comment

      Working...