Home  >  Q&A  >  body text

linux安装php报错!

unable to bind listening socket for address '/run/php/php7.1-fpm.sock' no such file or directory

启动命令:sudo /etc/init.d/php7-fpm start

php启动的时候报这个错误!

PHP中文网PHP中文网2713 days ago792

reply all(2)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-16 13:14:14

    Did you install it as root when you installed it?
    From here it seems that the socket connection cannot be created, mainly because the /run/php/php7.1-fpm.sock file cannot be created, probably because it does not have permissions or something.

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-16 13:14:14

    Create the directory manually mkdir -pv /run/php/

    reply
    0
  • Cancelreply