Editing PHP Values for WordPress Errors

Prev Next

If you see an error like “The uploaded file exceeds the upload size” when adding a theme or plugin, you just need to raise a couple of PHP limits for your site.

Using cPanel:

  1. Log in to cPanel.

  2. Go to Software → MultiPHP INI Editor.

Highlighted section shows MultiPHP INI Editor among software options for website management.

  1. Select your domain from the dropdown:

    MultiPHP INI Editor interface showing location selection for PHP configuration settings.

    • upload_max_filesize: 64M (or the smallest value that fits your file)

    • post_max_size: 64M (must be ≥ upload_max_filesize). This can be larger than upload_max_filesize if required, but must at least be equal to upload_max_filesize.

  2. Click Apply.

    Configuration settings for session path, file size, and output compression options.

    Tips

    If you are using Cloudlinux, you may need to adjust the LVE setting also if the resources allocated here are higher than those in the LVE Manager.

    Dont set these too high as it may allow abuse of the resources through the site, which may affect the rest of the server/other sites.