Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

(I'm a beginner with servers)

I try to spawn a simple index.py as cgi listener using the command:

sudo spawn-fcgi -d /usr/share/nginx/www/ -f /usr/share/nginx/www/index.py -a -p 9002

This gives:

spawn-fcgi: child spawned successfully: PID: 2827

However, when calling

sudo netstat -tap

it seems that there is no listener on the desired port 9002:

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State         PID/Program name
tcp        0      0 localhost:9000          *:*                     LISTEN      814/php-cgi     
tcp        0      0 localhost:mysql         *:*                     LISTEN      672/mysqld      
tcp        0      0 *:http                  *:*                     LISTEN      793/nginx       
tcp        0      0 *:ssh                   *:*                     LISTEN      514/sshd        
tcp        0    288 konstantinschubert:ssh  ______________ ESTABLISHED 1130/sshd: kon [pri
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      514/sshd  

I also can't find the process calling sudo ps -aux | grep 2827

Most likely, I am missing someting trivial.

PS: In a wider scope, I am following this guide: http://webpy.org/cookbook/fastcgi-nginx

Hoping for help!


share|improve this question
If the process ID is no longer in the process list, that means it exited. The question you need to be asking is: Why did the process exit? You are likely to find information in the logs if the process exited abnormally. –  Michael Hampton Jul 24 '12 at 1:11
Wich log should I look at? I checked /var/logs/nginx/error.log, but it seems to contain only connection failours (502 errors caused by missing listener on 9002 –  Konstantin Jul 24 '12 at 2:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.