How to configure nginx to run different versions of php-fpm and nginxphp-fpm at the same time

Source: Internet
Author: User
Tags php error php error log syslog

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.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.