Need to increase file upload allowance and confirm the root folder location for updating WP theme

October 2, 2017 1.3k views
Getting Started DigitalOcean

I have 1 droplet with 5 working sites in it. Trying to update the theme for one of them.

I’m trying to upload a theme in .zip format but get the error message “413 Request Entity Too Large” (via traditional Wordpress theme back end)

I am also connecting to my droplet using Filezilla, I’m trying to navigate to main directory.

It seems like /var/www/html is supposed to be the main directory, but I there is nothing there, only an index.html and an info.php.

If I got to /root/restore/httpdocs I see all of the sites in my droplet on it. I uploaded a theme to that location using FTP, but it doesn’t show on WP backend. So my question is, what is the right directory?

1 Answer

The default on Ubuntu is /var/www/html for Apache and Nginx but with a multi-site configuration it’s likely that someone changed the defaults. You can find out the root location for each site by looking at the configuration files in /etc/apache2/sites-enabled or /etc/nginx/sites-enabled depending on which web browser you are using.

You can resolve the 413 error you are seeing by adjusting the settings in your php.ini. This will be located in:




and the items you’ll want to change are:

Have another answer? Share your knowledge.

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