Monday, June 18, 2012

How to Change the php file upload limit in Ubuntu Linux

The maximal file size upload limit in php scripts which is set to 2Mb as default. In order to change that open  the file /etc/php5/apache2/php.ini with command

sudo nano /etc/php5/apache2/php.ini

Now  search for “upload_max_filesize” with (default 2M) your value. Save the file. Restart Apache webserver.

sudo /etc/init.d/apache2 restart

 

No comments: