[resolved] WP Image upload does not work under php suexec (3 posts)

  1. vavroom
    Posted 8 years ago #

    Perhaps it's only me, but I am just plainly unable to get the image upload working on 2.5.1 installed on a server running php suexec. I am able to get the dialogue box to select the file I want, but once I proceed, I get a "crunching" message and it finishes with an "http error", and the file is not uploaded/processed at all.

    I know it works because the exact same site, installed on xampp gives me no problem whatsoever.

    Any idea how I can resolve this? It's pretty major if I can't use the native image upload/processing.

    Thank you

  2. vavroom
    Posted 8 years ago #

    Finally found the answer here:

    Used the htaccess solution

  3. sufehmi
    Posted 8 years ago #

    the thread above solves problems related to mod_security, not suExec.

    With suExec you'll still have problems uploading, usually you'll get the follwoing error message :

    The uploaded file could not be moved to /home/myusername/myblog.com/wp-content/uploads/2008/06.

    Reason being because WP created that 2008/06 dir as apache's user (www-data / httpd / etc), but suExec require that dir to be owned by myusername - otherwise the upload will fail.

    Changing the directory's ownership to myusername fix the problem - but on the next month (when WP created the new directory for that month) you'll encounter this problem again.

    I don't know how to fix this permanently (then again it's 4 AM here and I've been debugging this and another issue for several hours now).

    Ideas ?

Topic Closed

This topic has been closed to new replies.

About this Topic