TurnKey Linux Virtual Appliance Library

Wordpress, cannot install new theme

I have installed the Wordpress appliance and everthing is working fine accept for when I login into wordpress to upload a new theme I get the following error:

"The uploaded file could not be moved to /var/www/wordpress/wp-content/uploads/2012/03. "

Any ideas what could be causing this, as the rest of the wordpress front end seems to work fine 

Its only when i click on Theme under Appearence it suddenly takes ages to load (about two minutes)

and then  when I upload the new theme after about 3 minute the error presents itself.

I have checked the user rights in the /var/www/wordpress/wp-content/uploads/2012/03 directory and it all seems to be okay 

 

 

 

Jeremy's picture

I was going to suggest checking permissions...

But sounds like you checked that... Just to be clear - it's owned by www-data:www-data? And has permissions set to 755?

yes, I have double checked

yes, I have double checked that. I am totally confused

Jeremy's picture

Google says:

The uploaded file could not be moved to /var/www/wordpress/wp-content/uploads/

...means that for your first content upload, such as images to place in a post or page, you may need to change permissions on /wp-content to 0777 temporarily to allow wordpress to create the uploads folder. After that you should be able to change it back to 0755.

And something else:

Switching off organise my uploads, and manually creating wp-content/uploads and setting just this folder to 777 has worked for me.

And finally - a php.ini tweak:

http://www.webtechquery.com/index.php/2011/11/wordpress-the-uploaded-fil...

Not sure if any of thst will work for you? Seems like a pretty common WP problem over the last few years but also may have different causes...?

Be great if you can post back with what if anythung works.

If/when you chmod, don't forget to use the '-R' (recursive) switch.

It may be easier to just upload the theme direct to your server via SFTP?

Suddenly, The uploaded file could not be moved to /var/www/vhost

Wordpress was working fine a few days ago and today when I tried to upload a pic, I got that "The uploaded file could not be moved to /var/www/vhosts/cs-wines.hk/httpdocs/wp-content/uploads."  I tried chmod 777 for the upload folder and I checked the rights of the folder in ssh and it seemed ok. 

I have already uncheck "organize ..,. by month" in the media settings.

pls help.

How large is the file you are

How large is the file you are trying to upload? maybe you need to increase the limit in the php.ini file. 

small. just 70k

the file size was just 70k.  a jpeg file.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)