• upload worked fine on a fedora core with php 4.?
    upload directory was set to 775, creating year/month directories. files uploaded by apache had owner=blog-owner and group of apache.

    Now I upgraded to centOS with php 5.x and can’t upload files any more – can’t move file to …

    I investigated a bit, playing with safe-mode also, and that initially appeared to work – but mysteriously only once ???

    Now the last thing I found and there I got stuck: WP created the intermediate directories, in my case a 03 (for march) with owner and group of apache. When I change the owner to the web owner (in my case user merlinsilk) then the upload succeeds. The files created in that directory are again apache:apache.

    Setting all directories from upload and higher to 777 makes no difference.

    Any ideas on how to solve that problem?

Viewing 1 replies (of 1 total)
  • Thread Starter Merlin Silk

    (@merlinsilk)

    OK, as there is nobody with an idea I had to go to work, and do binary elimination process.
    I have another server with some blogs and they work just fine, so I first attempted to break those, then I did a lot of other if-this-than-that’s and I finally found a very simple thing:

    I needed to turn off safe mode which in my plesk setup was turned on. So for all the blogs on the server I made sure I had a vhost.conf file in the plesk conf directory and that this file contained

    <Directory /var/www/vhosts/merlinsilk.com/httpdocs>
    php_admin_flag safe_mode off
    </Directory>

    Hope this helps somebody.

Viewing 1 replies (of 1 total)
  • The topic ‘upload and file owner’ is closed to new replies.