503 bad gateway with new Nginx install. Not reading php files.

I'm trying to get Nginx up and running. It doesn't seem to be reaading php files. Anything special I need to do?

Status: 
Closed (fixed)

Comments

Is there a php-cgi process running as the owner of the problem domain?

Also, what does the file logs/php.log under the domain's home directory contain?

Using ps I only see two processes, bash and ps.

pgrep php-cgi shows nothing.

The php log under the domains home directory is blank.

Would you like access to the server?

Sure, remote access would be really useful. Either enable it using Virtualmin's remote support access feature, or email me at jcameron@virtualmin.com

It's been enabled and referenced to this ticket number 20462.

Ok, I see the issue here - on your system, localhost resolves to both an IPv4 and v6 address, so when Virtualmin tries to start php-cgi and tells it to listen on localhost , it fails because it doesn't know which IP to use!

I have patched Virtualmin on your system to deal with this, and will include a fix in the next release of the Nginx plugin.

Awesome, thanks Jamie!

Automatically closed -- issue fixed for 2 weeks with no activity.