Home > Backend Development > PHP Tutorial > How to change upload_max_filesize?

How to change upload_max_filesize?

WBOY
Release: 2016-07-06 13:53:41
Original
1578 people have browsed it

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_filesizeFor simplicity upload_max_filesize=post_max_size=memory_limit=10m
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?

Reply content:

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_filesizeFor simplicity upload_max_filesize=post_max_size=memory_limit=10m
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()

How to change upload_max_filesize?

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template