Supervisor on VPS - nginx/fastcgi


Anybody install supervisord in dreamhost vps with nginx and fastcgi to help me to configure it??


We are currently testing an officially supported way to configure supervisord for nginx — please contact DreamHost support, and we’ll turn it on for you.


I contact Dreamhost, but they told me to configure the supervisord i need delete my admin user. I cant delete this user, i use him.

So i am trying configure myself but not work. Can you help me?


I see you talked to one of our support techs this morning. Have you uninstalled the app, and reinstalled as suggested?

Yes, i reinstalled…
i am trying configure supervisor or monit


I had success to configurate my VPS without 502 error in nginx.

i installed :
1 - i use monit to monitoring the nginx process
2 - download and put it on cron to control the php5.cgi process
3 - download and install the JJ’s VPS Memory Manager from

With this things my vps dont have anymore 502 error do nginx



i still have errors (502 errors)…

i have this config in monit:

check process nginx
with pidfile /dh/nginx/servers/httpd-xxxxxxx/var/logs/ #Pid file for nginx in my case it located in /opt/nginx/logs/
start program = "/etc/init.d/nginx start"
stop program = "/etc/init.d/nginx stop"
if failed host port 80 protocol HTTP then restart #set your server IP that runs nginx
if failed host port 80 protocol HTTP then alert
if 5 restarts with 5 cycles then alert
#check file webserver_count_php with path /tmp/php

if match “\b[0-1][0-5]?|15\b” then alert # 0…15

if match “\b[0-1][0-5]?|15\b” then exec “/usr/bin/killall -9 php53.cgi” # 0…15

check file webserver_response with path /tmp/web
if match “502” then exec “/usr/bin/killall -9 php53.cgi”

if match “502” then exec “/etc/init.d/nginx restart”

if match “502” then alert
depends on nginx

any can help with monit config?


@hussan. Are you still getting 502’s? I have the memory manager installed but I need to do something or move all of my sites so I’d like to know if you were able to solve your issue?


i change my server to nginx/php-fpm and the 502 is solved.

i am using monit and memory manager.


Thanks. If I still get the 502’s I might do the same. I’m already using the PS manager.