If you are unable to upload large files, WordPress themes, or plugins, you can increase the PHP upload limit using a php.ini file.

Steps to Increase Upload Size

  1. Log in to your cPanel account.
  2. Go to File Manager → public_html.
  3. Create a new file named php.ini.
  4. Add the following:
upload_max_filesize = 40M
post_max_size = 40M

You can change 40M to a higher value according to your requirements and the limits allowed by your hosting plan.

Increase PHP Memory Limit

To increase the PHP memory limit, add:

memory_limit = 128M

For example, you can change 128M to 256M if your hosting plan permits it.

WordPress Theme or Plugin Upload Issue

If you still experience upload-limit errors while uploading a WordPress theme or plugin, verify that the PHP settings are being applied to your WordPress installation. Depending on the server's PHP configuration, you may need to apply the settings through cPanel's PHP configuration tools rather than copying php.ini into wp-admin.

If the issue persists, open a Razorhost Support Ticket and provide the affected domain name so our team can assist you.

Помог ли вам данный ответ? 4 Пользователи нашли это полезным (7 голосов)