PHP文件上傳大小配置
php.ini
upload_max_size=10M
post_max_size=20M
nginx.conf
client_max_body_size 10M;
client_body_timeout 60s;
開(kāi)啟 php-fpm 錯(cuò)誤日志
- 修改 php-fpm.conf 文件捐顷,添加(或修改)如下配置:
[global]
error_log = log/error_log
[www]
catch_workers_output = yes
- 修改 php.ini 文件瓢谢,添加(或修改)如下配置:
log_errors = On
error_log = "/usr/local/lnmp/php/var/log/error_log"
error_reporting=E_ALL&~E_NOTICE
- 重啟 php-fpm