1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice

Owner Permissions Error

Discussion in 'Plesk for Linux - 8.x and Older' started by Pagemakers, Aug 26, 2005.

  1. Pagemakers

    Pagemakers Silver Pleskian

    31
    80%
    Joined:
    Dec 19, 2007
    Messages:
    664
    Likes Received:
    7
    Hello

    We have a PHP script that creates files within a domain. However, the files are created with the owner permissions of apache and not the domain that created them.

    Why?
     
  2. hardweb

    hardweb Guest

    0
     
    This is normal, files are created with the apache owner because PHP is running 'inside' apache.
     
  3. Pagemakers

    Pagemakers Silver Pleskian

    31
    80%
    Joined:
    Dec 19, 2007
    Messages:
    664
    Likes Received:
    7
    Thanks for your reply...

    The php script creates a folder and then another non-php script (a Perl cgi script) tries to write files within that folder.

    Here is the problem. It can't write the files because it does not have the permissions to write to the Apache owned folder.

    Any ideas?
     
  4. Whistler

    Whistler Guest

    0
     
    I would suggest that you either make a cronjob that on a hourly/daily basis set the correct file permissions - or maybe you add a custom button in the controlpanel allowing the users to manually set the correct permissions (create a script that sets it correct when runned).
     
  5. crshjnke

    crshjnke New Pleskian

    22
    57%
    Joined:
    Feb 6, 2005
    Messages:
    14
    Likes Received:
    0
    Copied from php.net about safemode
    And then lower I saw this
    Maybe this will help without a cronjob
     
  6. Pagemakers

    Pagemakers Silver Pleskian

    31
    80%
    Joined:
    Dec 19, 2007
    Messages:
    664
    Likes Received:
    7
    What a great community this is....Thanks guys.
     
Loading...