Wordpress and ISPConfig 3

Discussion in 'General' started by NewGuy, Jan 28, 2010.

  1. NewGuy

    NewGuy New Member

    I am trying to install WordPress 2.9 and add a new theme to it. To do so, I have to use the upload tool within WordPress. When I do I get this

    The uploaded file could not be moved to /var/www/clients/client1/web1/web/wp-content/uploads/2010/01
    I've Googled and the (bad) advise has been to set the wp-content folder to 777 permissions for the first upload then reset it to 755. I've tried this and get the same error. I am hoping it is a problem with Ispconfig at this point. Has anyone gotten this installed?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You selected the wrong php mode. Switch php mode of this site to php-fcgi or php-cgi and enable suexec.
  3. NewGuy

    NewGuy New Member

    Thanks for the quick reply. I've tried all 4 options and still get this error.
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    You have to wait until the config files are processed (2 minutes) and you have to enable suexec and not just a different php option.
  5. NewGuy

    NewGuy New Member

    I seem to be either misunderstanding or something isn't working as we expect. I've attached a screenshot of how it is currently configured. I left it set at this after my last post and tested again prior to posting now. I am still getting the error.

    Attached Files:

  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Then you most likely misconfigured some permissions of the folders with your prior attemps to fix this.


    chown -R web1:client1 /var/www/clients/client1/web1/web

    on the shell and try again.
  7. NewGuy

    NewGuy New Member


    I'll go back to the Wordpress forums and see if they have any other suggestions. I believe everything is set up in ISPConfig. Thanks for the notes about which version of PHP to use.
  8. NewGuy

    NewGuy New Member

    What are the proper permissions for:

  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Post the permissions of your folders if you wnat that we caompare them. But the permissions of these folders do not matter for your problem. If they were incorrect, you would not be able to execute a php script without errors. What matters is the directory /var/www/clients/client1/web1/web/wp-content/uploads/2010/01, so please post the output of:

    ls -la /var/www/clients/client1/web1/web/wp-content/uploads/2010/01
  10. Mosquito

    Mosquito New Member

    Its not a permissions problem if you can upload images but not themes. Likely, the theme is larger in size and exceeds the max allowed by php.ini. On a RedHat system look at

    Look for max file size settings. The defaults are 2M. Try increasing that.
  11. Aisfrond

    Aisfrond New Member

    For wordpress you should listen to Till, enable suexec and use Fast-CGI as PHP.
    Then try this for safety reasons:
    find web/ -type d -exec chmod 755 {} \;
    find web/ -type f -exec chmod 644 {} \;
    (from /var/www/sitename.com/ )

    If you still have problems, try this in 'apache configuration' of your web hosting options:

    FcgidMaxRequestLen 104857600

    I have to say: Till is very very good, I can't believe how many problems I've resolved thanks to him.


Share This Page