How to find my php-fpm.sock?

后端 未结 6 1122
长发绾君心
长发绾君心 2020-12-07 21:04

I\'m running Wordpress with: Nginx + PHP-FPM + APC + W3 Total Cache + PageSpeed.

After 3 days researching and configuring, I succeeded to make it work. I configured

6条回答
  •  忘掉有多难
    2020-12-07 21:29

    I know this is old questions but since I too have the same problem just now and found out the answer, thought I might share it. The problem was due to configuration at pood.d/ directory.

    Open

    /etc/php5/fpm/pool.d/www.conf
    

    find

    listen = 127.0.0.1:9000
    

    change to

    listen = /var/run/php5-fpm.sock
    

    Restart both nginx and php5-fpm service afterwards and check if php5-fpm.sock already created.

提交回复
热议问题