NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory)

前端 未结 8 1745
走了就别回头了
走了就别回头了 2021-02-07 01:05

I\'ve just recently moved my websites from apache2 to Nginx as my new web server backend. got to love problems aha.

HTML files in the web host director work prior to php

8条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-07 02:03

    Reinstall php-fpm works for me:

    apt-get purge php7.3-fpm
    rm -rf /etc/php/7.3/fpm/
    apt-get install php7.3-fpm
    service nginx restart
    service php7.3-fpm restart
    

提交回复
热议问题