Press "Enter" to skip to content

mac php-fpm failed to open error_log (/usr/local/var/log/php-fpm.log): Permission denied (13)

php-fpm
提示如下:
ERROR: failed to open error_log (/usr/local/var/log/php-fpm.log): Permission denied (13)
ERROR: failed to post process the configuration
ERROR: FPM initialization failed

缺少权限,改为sudo启动

sudo  php-fpm

启动成功

如果还不能成功,将php-fpm.log的目录权限改为777

sudo chmod -R 777 /usr/local/var/log/

Comments are closed.