[solved] PHP uploads not setting owner/group

Discussion in 'Install/Configuration' started by Banana Lord., Nov 14, 2012.

  1. Banana Lord.

    Banana Lord. Active Member

    I have my virtual hosts set up to run off DocRoot UID (so that domain may only access files on that domain via PHP) but it seems that when a file is uploaded it is not owned by the DocRoot UID. This causes 403 access forbidden errors and is very frustrating - what am I doing wrong here :(
    Last edited by a moderator: Dec 3, 2012
  2. Banana Lord.

    Banana Lord. Active Member

    (this was not a problem with NGINX)
  3. NiteWave

    NiteWave Administrator

    please check your php suExec setting.
    Server->General->Using Apache Configuration File->PHP suEXEC

    should be Yes in your case.
  4. Banana Lord.

    Banana Lord. Active Member

    Thanks for the quick response! I've enabled it as instructed but files are still missing their owner, as shown by the log:

    [68.xx.xx.xx:39176-0#sitename] owner of file does not match owner of vhost, path [/home/sitename/html/assets/files/86.swf], access denied.
    This site is set up in the following way:


    the PHP_suEXEC template is as follows:



    EDIT: To clarify, do I need to map each virtual host, or do I just need to map the listener they belong to?
    Last edited: Nov 14, 2012
  5. NiteWave

    NiteWave Administrator

    you're using vhost template. please show the screenshot of the problem vhost's Basic->Security

    mainly to check "ExtApp Set UID Mode"
  6. Banana Lord.

    Banana Lord. Active Member

    sorry for the delay, I figured it out now.

    You have to set up each site under the template, I thought you set up each site as a vhost and then set it to use the template!
  7. NiteWave

    NiteWave Administrator

    Thanks for your update!

Share This Page