Perl – How to run Perl scripts using FastCGI on Nginx

cgifastcginginxperl

So I am following this guide: http://technotes.1000lines.net/?p=23 and I am going through the steps. I have a VPN (slicehost.com) with Debian Etch, serving a website (static so far) with nginx. I used wget to download FastCGI and I did the usual make make install routine.

So I guess since FastCGI can't normally run CGI scripts you have to use some type of perl wrapper to interpret the perl.

Now I run this script

http://technotes.1000lines.net/fastcgi-wrapper.pl

and I run into the exact same problem that a person ran into on the page that the script was submitted:

http://www.ruby-forum.com/topic/145858

(I'm not a ruby person and there is nothing ruby oriented in there)

I keep getting a

# bind/listen: No such file or directory

And I have no idea how to proceed. I would appreciate any help and I can give any more details that anyone would need.

Best Answer

The webserver needs a Unix domain socket to connect to the FastCGI application, but the socket can't be created. Most likely the directory you want it to be in doesn't exist (because they are automatically created when you do a bind).

Related Topic