php安装完后配置php.ini和php-fpm.conf

时间:2022-10-14 09:35:17

php.ini

//错误日志级别

error_reporting = E_ALL

//错误日志文件路径

error_log = /data/logs/php/php_errors.log

//配置时区

date.timezone = "Asia/Shanghai"

 

php-fpm.conf

//设置php-fpm运行时的pid存储位置

pid = run/php-fpm.pid

//php-fpm错误日志路径

error_log = /data/logs/php/php-fpm.log

//记录php错误

catch_workers_output = yes

//错误日志级别

log_level = notice

//用户和用户组

user = www

group = www

//慢日志

slowlog = log/$pool.log.slow

//执行时间超过后记录慢日志

request_slowlog_timeout = 12