[PHP] file upload size limit for Nginx and PHP ,. [PHP] the file upload size limit for Nginx and PHP. modify the file upload size limit for three [PHP] Nginx and PHP files in the PHP configuration file by @ www. chenwei. ws1,
----------------------------------------------------------------------- @ Black eye poet www. chenwei. ws
1. modify three items in the PHP configuration file: vim/usr/local/php/etc/php. ini
(1) post_max_size = 50 M # maximum POST data acceptable to PHP
(2) upload_max_filesize = 50 M # maximum value allowed for file Upload
(3) max_execution_time = 300 # Maximum execution time of each script, in seconds (0 is not limited, it is not recommended to set 0)
2. modify the Nginx configuration file vim/usr/local/nginx/conf/nginx. conf. (if you forget the specific location of the configuration file, you can use locate nginx. conf to find it)
(1) client_max_body_size 50 m # maximum client Upload size 50 M
3. restart PHP:/etc/init. d/php-fpm restart
4. restart Nginx smoothly:/usr/local/nginx/sbin/nginx-s reload
Bytes ----------------------------------------------------------------------------------------------------
Modified, ----------------------------------------------------------------------- @ www. chenwei. ws 1. modify three items in the PHP configuration file...