virtualmin+nginx php conf??

Posted April 22, 2014 6.9k views
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/ 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; 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!
1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers
What is the "listen" value in "/etc/php5/fpm/pool.d/www.conf" It should match what is in fastcgi_pass.
Thanks, Andrew!, the problem is /etc/php5/fpm/pool.d/www.conf doesn't exist, virtualmin must install it in another path...
I've installed package php5-fpm, all with usual paths, changed the listen value and all right now.
I got this error too. I googled and found no solution. Is it only two of us having this problems? I dont know how efficient you solved the problems but in my case, I just had to start php-fgi service..

here is example:

my domain:
so, what I need to run is,

service php-fcgi-example-com start

and my website back to online.. I dont know why this service stop on its own.