Upload make directory with wrong owner (2 posts)

  1. Stefano Aglietti
    Posted 3 years ago #

    In a new complex environment with multiple server we are experiencing the following problem, users that make an upload this month have wordpress creating the years and month uploads directory but these are with wrong user/group, even if the user that run the server is apache and users have their own root dir.

    we have a structure like thie:


    the doc dir for the single domain is www, www and blogname have user/group specific for the username. All the parents directory /username and above) are root/root owner/group.

    Looks like WP get the owner from the new dir not from the site document root but a level above... that's strange. I browsed in the WP code to get where exactly it gets the owner and dir it takes for template... but i didn't found it.

    Maybe just changig username owers/grouo will help? we would like to aviod a try and test for the various blog we have no access...

    Thanks a lot to all will help :)

  2. Bas Schuiling
    Posted 3 years ago #

    For all I know WP just blurps out the usual PHP mkdir statements, which takes it's user names and all from Apache. I'm not totally sure, but it's apache I would start to debug this.

Topic Closed

This topic has been closed to new replies.

About this Topic