0

I've followed this tutorial for a basic installation of nginx.

I always get bad gateway errors and when i look at the logs i see :

[error] 3226#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client

Here is my nginx.conf and contents of my sites-available/defaults

nginx.conf, defaults

I am also seeing this error :

conflicting server name "explorable.com" on 0.0.0.0:80, ignored

I am using Ubuntu 12.04, PHP5-FPM

Thank you!

3
  • Is php5-fpm actually running and listening to 127.0.0.1 on port 9000?
    – Ladadadada
    Dec 13, 2012 at 23:59
  • How do i know that? Sorry Im very much new to PHP-FPM /Nginx combo
    – r2b2
    Dec 14, 2012 at 7:55
  • The command sudo netstat -tlnp | egrep "php5-fpm|9000" displays any running process called php5-fpm or listening on port 9000.
    – Ladadadada
    Dec 14, 2012 at 10:12

1 Answer 1

1

Check if php-fpm is really running with e.g. ps aux | grep php. You can start and stop php-fpm with /etc/init.d/php-fpm start|stop|restart.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .