Supervisor on VPS - nginx/fastcgi


#1

Hi,

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

Thanks


#2

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.


#3

Hi,

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?

thanks


#4

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


#5

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

thanks


#6

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 http://files.gimmesoda.com/nginx_cron.sh and put it on cron to control the php5.cgi process
3 - download and install the JJ’s VPS Memory Manager from http://www.gimmesoda.com/thoughts-on-vps-memory-management/

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

thanks


#7

Hi,

i still have errors (502 errors)…

i have this config in monit:

check process nginx
with pidfile /dh/nginx/servers/httpd-xxxxxxx/var/logs/nginx.pid #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 direct.xxxxxx.com port 80 protocol HTTP then restart #set your server IP that runs nginx
if failed host direct.xxxxxx.com 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?

Thanks


#8

@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?


#9

Hi,

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

i am using monit and memory manager.

thanls


#10

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