First we need to locate the php.ini file.
-----command-----
locate php.ini
-----command-----
For cPanel the correct file is /usr/local/lib/php.ini. The standard location for most other servers is /etc/php.ini. Go ahead and open the php.ini file.
-----command-----
pico -w /etc/php.ini
-----command-----
or for cPanel
-----command-----
pico -w /usr/local/lib/php.ini
-----command-----
once there press control + w and search for upload_max_filesize change that to 10M if you want it to be 10 Megabytes.
once you change that and have it set to 10M press control + x then it will ask you if you want to save it press the y to save the changes and reboot apache.
-----command-----
service httpd restart
-----command-----
hope it helps.
|