Wordpress unable to upload and install theme

February 2, 2015 6.5k views

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!

2 comments
  • 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
    
  • 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**
    
    edited by asb
1 Answer

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

Have another answer? Share your knowledge.