I took the vps server, debine 8 was deployed there. I inserted nginx 1.10.1 into it, installed php. Everything works except php. Here is the nginx config, what did I do wrong?
worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server { listen 80; server_name localhost; root html; index index.php; location ~ \.php$ { try_files $uri =404; fastcgi_pass unix:/var/run/phpfpm-webpanels.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location ~ ^/(fpmstat|ping)$ { access_log off; allow 127.0.0.1; allow ***.***.***.***; deny all; include fastcgi_params; fastcgi_param SCRIPT_FILENAME /fpmstat; fastcgi_pass unix:/var/run/phpfpm-webpanels.sock; } location ~* ^.+.(html|jpg|jpeg|gif|css|png|js|ico|txt)$ { expires 60d; } location /stat { rtmp_stat all; rtmp_stat_stylesheet stat.xsl; } location /stat.xsl { root html; } location /hls { #server hls fragments types{ application/vnd.apple.mpegurl m3u8; video/mp2t ts; } alias temp/hls; expires -1; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } } In the logs I could not find the sock I needed, I fixed it and the errors stopped going out, but php still does not work. Here is the code for the new config
worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_timeout 65; server { listen 80; server_name myname; root html; index index.php; location / { try_files $uri $uri/ /index.php$args; } location ~ \.php$ { try_files $uri =404; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } location /stat { rtmp_stat all; rtmp_stat_stylesheet stat.xsl; } location /stat.xsl { root html; } location /hls { #server hls fragments types{ application/vnd.apple.mpegurl m3u8; video/mp2t ts; } alias temp/hls; expires -1; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } }
php-fpmrunning? that it creates a socket/var/run/phpfpm-webpanels.sock? Logs watched? - approximatenumber