Question

Wordpress unable to upload and install theme

  • Posted February 2, 2015

Hi, I used one click install for Wordpress (ubuntu 14.04) I uploaded the theme and it keeps showing “are you sure you want to do this”.

I have another wordpress account and I’ve managed to upload the exact same theme successfully. Already configured my php.ini (for maximum file size) to 32M and gave all the root read write permissions - I’m totally at a lost now. Please help!

Subscribe
Share

I solved it. We have to change post_max_size in php.ini. I did everything I could, didn’t work, even killed my droplet and started again… but when I changed it, it worked!

; Maximum allowed size for uploaded files.
upload_max_filesize = 40M

**; Must be greater than or equal to upload_max_filesize
post_max_size = 40M**

In the php.ini did you set both the max post size and the max upload size? Both need to be large enough to support your theme.

Second you said you game all the root read write permissions. Are these files owned by root or your www-data user? I would recommend ensuring the ownership of these files by running:

chown -Rf www-data:www-data /var/www

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This question was answered by @awesomekel:

I solved it. We have to change post_max_size in php.ini. I did everything I could, didn’t work, even killed my droplet and started again… but when I changed it, it worked!

; Maximum allowed size for uploaded files.
upload_max_filesize = 40M

**; Must be greater than or equal to upload_max_filesize
post_max_size = 40M**

View the original comment