How to change the maximum upload file size in PHP
English Français
April 28, 2014
Antre du Tryphon

How to change the maximum upload file size in PHP

April 28, 2014 · claude PHP Apache

You can increase the maximum upload file size for only one application by creating a php.ini file in the directory where the file upload PHP script is. Add the following lines: ; Maximum allowed size for uploaded files. upload_max_filesize = 40M ; Must be greater than or equal to upload_max_filesize post_max_size = 40M It can also be changed system wide by editing the file /etc/php5/apache2/php.ini which is the global php.ini file. Modify the two lines listed above and restart apache.


Leave a Comment

Replying to
Your email address will not be published.

Copyright 2012–2026, Claude "Tryphon" Théroux