• Resolved vavroom

    (@vavroom)


    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter vavroom

    (@vavroom)

    Finally found the answer here:
    http://wordpress.org/support/topic/162198?replies=124

    Used the htaccess solution

    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 ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP Image upload does not work under php suexec’ is closed to new replies.