Home >Backend Development >PHP Tutorial >How to change upload_max_filesize?
Lamp installed on debian
find / -name 'php.ini'
/etc/php5/fpm/php.ini
/etc/php5/cli/php.ini
/etc/php5/apache2/php.ini
Now I want to modify upload_max_filesize=10m
1. It needs to satisfy upload_max_filesize
2. Which file to change
/etc/php5/ fpm/php.ini must be changed
/etc/php5/cli/php.ini In order to use the command line, this must also be changed
Does the file /etc/php5/apache2/php.ini need to be moved? What does it mean?
Lamp installed on debian
find / -name 'php.ini'
/etc/php5/fpm/php.ini
/etc/php5/cli/php.ini
/etc/php5/apache2/php.ini
Now I want to modify upload_max_filesize=10m
1. It needs to satisfy upload_max_filesize
2. Which file to change
/etc/php5/ fpm/php.ini must be changed
/etc/php5/cli/php.ini In order to use the command line, this must also be changed
Does the file /etc/php5/apache2/php.ini need to be moved? What does it mean?
If you are using apache, modify /apache2/php.ini
. If you are using FPM (usually with nginx), modify /fpm/php.ini
echo phpinfo()