KB Article #177737

Adjust file size upload in PHP for Joomla/API Portal

Problem

How to adjust file size for larger files upload in API Portal / Joomla ?

Resolution

Basically, these are 3 (4) PHP settings in /php.ini, but it has to be tuned them carefully, as it can affect (severely) whole behavior of server.

server:~ # egrep -i 'post_max_size|upload_max_filesize|max_input_time|max_exec' /etc/php5/apache2/php.ini
; max_input_time
max_execution_time = 30
max_input_time = 60
post_max_size = 20M
upload_max_filesize = 20M


It is strongly advised to:

- to not put
max_execution_time = 0 ; it means unlimited
max_input_time = 0 ; it means unlimited


- to finely tune
post_max_size = 20M
upload_max_filesize = 20M


Restart of Apache is required. These parameters (as well as all PHP parameters) may be seen in browser using this page:

<?php

phpinfo();

?>