Mac builds the Nginx+PHP environment, using the built-in php-fpm, configuration file in / etc/php-fpm.conf,error_log
; Error log file
20 ; If it"s set to "syslog", log is sent to syslogd instead of being written
21 ; into a local file.
22 ; Note: the default prefix is /usr/local
23 ; Default Value: log/php-fpm.log
24 ;error_log = /var/log/php-fpm.log
-sharp/usr/local/var/log/php-fpm.log
execute error
sudo php-fpm
[25-Oct-2018 15:30:38] ERROR: failed to open error_log (/usr/var/log/php-fpm.log): No such file or directory (2)
[25-Oct-2018 15:30:38] ERROR: failed to post process the configuration
[25-Oct-2018 15:30:38] ERROR: FPM initialization failed
awkward. Even if I delete everything in / etc/php-fpm.conf, I will still report such an error, but if I delete / etc/php-fpm.conf, I will report such an error
sudo php-fpm
[25-Oct-2018 15:32:02] ERROR: failed to open configuration file "/private/etc/php-fpm.conf": No such file or directory (2)
[25-Oct-2018 15:32:02] ERROR: failed to load configuration file "/private/etc/php-fpm.conf"
[25-Oct-2018 15:32:02] ERROR: FPM initialization failed
so I really don"t understand whether php-fpm is configured to read php-fpm.conf or not to read php-fpm.conf,.