PHP Snippet 1:
server {
error_log /path/server.error.log;
listen 80;
root /var/www;
index index.html index.php index.htm index.nginx-debian.html;
server_name local...
PHP Snippet 2:
sudo tail -f /var/log/php7.*-fpm.log
ngnix.conf => php-fpm socet?
location ~ \.php$ {
fastcgi_pass unix:/var/run/php7.0-fpm.sock;
include fastcgi_params;
}
PHP Snippet 3:
location ~ [^/]\.php(/|$) {
...
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
PHP Snippet 4:
location ~ [^/]\.php(/|$) {
....
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}