Ubuntu 16.04安装php7

  sre

5fccc071569cb436.jpg_fo742.jpg
apt install php
vim /etc/php/7.0/fpm/php-fpm.conf
###末尾增加
listen = /run/php/php7.0-fpm.sock

service php7.0-fpm restart

#调用
location ~ .php$ {
include snippets/fastcgi-php.conf;
#~ # With php7.0-cgi alone:
#~ fastcgi_pass 127.0.0.1:9000;
#~ # With php7.0-fpm:
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}

LEAVE A COMMENT

Captcha Code