virtualmin+nginx php conf??
Hi! I know it's a recursive question but with virtualmin the conf is diferent:
I've an ubuntu droplet with virtualmin and nginx. How can I configure the .php?
In etc/nginx/sites-available/domain the conf is:
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/php-nginx/13931827922062.sock/socket;
}
And I've seen that exists :/var/php-nginx/13931827922062.php.pid
But i've always have the error:
25407#0: *1 connect() to unix:/var/php-nginx/13931827922062.sock/socket failed (2: No such file or directory)...upstream: "fastcgi://unix:/var/php-nginx/13931827922062.sock/socket:"
I've tried fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/var/run/php5-fpm.sock;
I've seen that in php.ini is cgi.fix_pathinfo = 0;.... bat always i 've error 502 Bad gateway in nginx.
Any suggestions?
thanks!
Hi,
I manage to get it all working. Please visit: https://virtualmin.com/node/34427