How to change Upload Max Size in PHP

In order to change the max upload size, you’ll have to edit a file in your server. The file is named ‘php.ini’ but it can be located in different paths, depending on the operating system and the web server installed. To get information about where your php.ini file(s) are, you can simply create a php script with the following code:

File Location path
Z Panel Control Panel : /etc/php.ini
cPanel : /usr/local/lib/php.ini

Once you know where the php.ini is, you should edit it using an editor like nano or vim. Find the directive upload_max_filesize and increase its value. After doing that, you’ll probably need to restart your web server.