### vim /etc/php/7.0/fpm/pool.d/www.conf ### Change the Unix socket to a TCP socket listen = 127.0.0.1:9000
Nginx
1 2 3 4 5 6 7 8 9 10 11 12 13
### vim /etc/nginx/sites-available/default
root /var/www/html; # Add index.php to the list if you are using PHP index index.php index.html index.htm; server_name _; 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:/var/run/php7.0-fpm.sock; }
Misc
Related Commands
1 2 3
service php7.0-fpm {start|stop|status|restart|reload|force-reload} service mysql {start|stop|restart|reload|force-reload|status} service nginx {start|stop|restart|reload|force-reload|status|configtest}