How to change upload max file size in php

By default, PHP is set to allow uploads of files with a size of 2MB or less. If you are using a PHP script such as WordPress and need to increase the upload max file size, then you will have to adjust your PHP settings from cPanel and raise the values for "upload_max_filesize" and "post_max_size".

To change the "upload_max_filesize" and "post_max_size" for PHP, follow these simple steps:

  1. Log into cPanel.
  2. Under the Software section, click 'Select PHP Version' icon.
  3. Then click 'Switch to PHP options' link.
  4. You can now change the values for upload_max_filesize and post_max_size
  5. click the Apply button.
  6. hit the Save button & enjoy!

Additional information
The value of post_max_size should not exceed the PHP memory_limit.

  • cpanel, memory, php
  • 0 Los Usuarios han Encontrado Esto Útil
¿Fue útil la respuesta?

Artículos Relacionados

How can I check my Resource Usage from cPanel?

You can check your CPU/Memory(RAM)/Disk I/O and other resource usage by logging into cPanel. 1....

How can I generate a Certificate Signing Request (CSR) from cPanel?

Generate a Certificate Signing Request (CSR) Login to cPanel Click SSL/TLS Manager >...

How can I increase my PHP memory limit?

You can easily change the memory_limit for PHP by following these steps. Log into cPanel...

How can I show hidden files (htaccess) when using cPanel File Manager

By default, when using cPanel's File manager, it will not display hidden files and folders until...

How can I view Awstats from cPanel?

AWStats is disabled by default on all accounts. You can enable AWStats from cPanel at anytime...