Nginx-access domain name, connect () tounix:/var/run/php5-fpm.sockfailed appears

Source: Internet
Author: User
Development Environment: mac Installation Software: homebrew Problem description: {code...} appears when accessing the Domain Name ...} edit etcphp5fpmpool. dwww. conf, but I have not found the php installed with homebrew. If you can answer this question, it is of great help to me. Development Environment: mac
Install software: homebrew
Problem description: domain name access

connect() to unix:/var/run/php5-fpm.sock failed

Edit on the Internet/etc/php5/fpm/pool.d/www.conf
However, I have not found the php installed with homebrew. It is of great help to me if you can answer the question.

Reply content:

Development Environment: mac
Install software: homebrew
Problem description: domain name access

connect() to unix:/var/run/php5-fpm.sock failed

Edit on the Internet/etc/php5/fpm/pool.d/www.conf
However, I have not found the php installed with homebrew. It is of great help to me if you can answer the question.

1. Check whether the/var/run/php-fpm.sock file exists
2. php cannot be accessed. Check the error log.
3. Chinese official website to see the installation method of wrong http://brew.sh/index_zh-cn.html
4.> reference text

** Homebrew command:
Brew list-list Installed Software
Brew update-update Homebrew
Brew home *-open in a browser
Brew info *-display software content
Brew deps *-display package Dependencies
Brew server *-start the web server. You can access http: // localhost: 4567/in a browser to manage packages on the same webpage.
Brew-h brew-help **
5. How to Handle permission issues: edit the/etc/php5/fpm/pool. d/www. conf file and remove the following annotations:

listen.owner = www-datalisten.group = www-datalisten.mode = 0660 

Restart

    sudo service php5-fpm restart

Try not to view the error log and paste the log for detailed analysis.

Php-fpm needs to be installed separately. If your http service runs nginx or something like that, all requests to php should be directed to php-fpm for parsing, php alone is not enough. This is different from apache.

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.