How to configure nginx to run different versions of php-fpm and nginxphp-fpm at the same time
Found in the/usr/local/php/etc/php-fpm.conf
Listen = 127.0.0.1: 9000
Change port 9000 to 9001
Make the same port modification in the corresponding nginx configuration.
How does nginx php fpm Display error logs?
To enable php-fpm to Display error logs, configure php-fpm first.
Configure the file path for the php error log in the php-fpm configuration file (usually in the etc/php-fpm.conf under the php installation directory.
; Error log file; If it's set to "syslog", log is sent to syslogd instead of being written; in a local file .; note: the default prefix is/home/wangwei/php/var; Default Value: log/php-fpm.log; error_log = log/php-fpm.log above is where error logs are configured in my php-fpm.conf files. Remove the; before error_log = log/php-fpm.log and change:
; Error log file; If it's set to "syslog", log is sent to syslogd instead of being written; in a local file .; note: the default prefix is/home/wangwei/php/var; Default Value: log/php-fpm.logerror_log =/home/work/log/php-fpm.log.wf after modification, save the configuration, restart php-fpm.
Note that if the relative path is used, the prefix of the path is based on the var directory of the php installation directory.
Ubuntu + nginx + php-fpm configuration problems
I am also playing Ubuntu, but I still cannot understand your problem ...... It is too far-reaching to be affected by Windows.