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.