WordPress – The uploaded file could not be moved to /var/www/ – Ubuntu / Linux

Having problems in uploading the WordPress Themes, Plugins etc. in Ubuntu? Here’s a simple and easy solution:

Solution – The uploaded file could not be moved to /var/www/

Simply open the file php.ini file, existing in /etc folder. For me, it is in:


Now search for the variable upload_max_filesize and change its value from 2M to whatever the file size, you want to, for me, I changed it from:

upload_max_filesize = 2M


upload_max_filesize = 100M

After this, restart your Apache Server, through the following post:

Install PHP, MySQL and Apache (LAMP) on Ubuntu (Linux)

And your problem could have been resolved.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>