Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Jun 25, 2009 3:04 pm 
Offline
Senior Newbie

Joined: Thu May 21, 2009 9:30 pm
Posts: 14
Hey there:

I'm pretty much a n00b, but I have managed to get a server up and running with nginx/php and other fun services such as postfix/dovecot, etc. I'm using Ubuntu 8.10.

I'm using spawn-fcgi to manage php processes from nginx. And that works fine. However, I'm having a tremendously difficult time figuring out how to get perl scripts running from the web browser. The nginx end of things I can probably figure out; what I don't understand, though, is what process I should be running to receive the requests from nginx to execute perl scripts, and how I should get that process running, and under what permission. The most I've accomplished is compiling and installing fcgiwrap, but I'm now stuck.

I realize more details would probably be helpful to get an answer to my question, but I'm not sure what additional details are necessary! Thanks in advance.

- geoff


Top
   
 Post subject:
PostPosted: Thu Jun 25, 2009 5:54 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
As you discovered, nginx has no native support for plain old CGI. If fcgiwrap doesn't work for you (for whatever reason), you'll have to proxy the request to another server that does support CGI. Actually that might be a lot simpler than compiling an nginx module and trying to troubleshoot it.

I'd recommend that you run lighttpd on an internal port (e.g. 127.0.0.1:8080) and handle CGI requests with that.

http://redmine.lighttpd.net/projects/li ... ocs:ModCGI


Top
   
 Post subject:
PostPosted: Thu Jun 25, 2009 9:25 pm 
Offline
Senior Newbie

Joined: Thu May 21, 2009 9:30 pm
Posts: 14
Thanks -- I actually figured out how to initiate fcgiwrap and get nginx to send the requests over there, so I don't have to resort to your options.

From what I understand, the performance isn't going to rock, but my goal was just to be able to run a few one-off scripts that my wife and I made to do some odd tasks. Thanks for the suggestions, though.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group