• Hi, I installed WP 3.0.3 on a Apache 2.2 with PHP5 [safe mode ON] Linux server.

    When I post a new article and upload a related pic, then I see the file in the upload location with owner/grop assigned both to webserver user/group, and not to the system user.

    I have that:

    ls -al wp-content/uploads/
    drwxrwx— 2
    example-com www-data 488 Dec 15 10:21 .
    drwxrwx— 6 example-com www-data 184 Dec 15 10:21 ..
    -rw-rw—- 1 www-data www-data 6544 Dec 15 10:21 90_03_36-Christmas-Decorations_web-115×115.jpg

    The CMS works fine on web, but I have problems with FTP client operations that result in permission denied because of bad file owner.

    In short… I really prefer files owned with example-com system owner when uploaded with the WP, and not logging everytime and giving bash command to chown files.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    This is ultimately a server configuration issue. You need to change the server to use a setuid method to allow it to run the PHP processes as the file owner instead of as the webserver.

    The quick and easy way to do this is to run mod_suphp instead of mod_php. But if you’re using a FastCGI setup or similar, then the setup can be more complex than that.

    https://www.google.com/search?q=apache+php+setuid

    I am having this issue to, but someone else runs my webserver. How can I at least get myself as an owner of these directories? I can’t upload my thumbnails or install new plugin themes.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Safe Mode and Bad Owner in Uploaded Files’ is closed to new replies.