LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > CGI/Perl/Python > 503 Service Unavailable - while setting up Perl FastCGI

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-14-2005, 11:02 PM
nigel nigel is offline
New Member
 
Join Date: Feb 2005
Posts: 3
Default 503 Service Unavailable - while setting up Perl FastCGI

Hi,

I'm trying to set up this minimal Perl FastCGI script in the DEFAULT vhost directory but I'm getting 503 Service Unavailble errors:

#!/usr/bin/perl

use FCGI;

$ENV{FCGI_SOCKET_PATH} = "UDS://tmp/myfcgi.sock";
$ENV{FCGI_LISTEN_QUEUE} = 100;

$count = 0;

while(FCGI::accept() >= 0) {
print("Content-type: text/html\r\n\r\n",
"<title>FastCGI Hello! (Perl)</title>\n",
"<h1>FastCGI Hello! (Perl)</h1>\n",
"Request number ", $++count,
" running on host $ENV('SERVER_NAME')");
}

When I turn on the DEGUG level to HIGH I see this in the error log:

2005-02-15 06:52:34.373 [DEBUG] [127.0.0.1:40300-1] New request:
Method=[GET], URI=[/hello2.pl],
QueryString=[]
Content Length=0
2005-02-15 06:52:34.373 [DEBUG] [127.0.0.1:40300-1] HttpIOLink::suspendRead()...
2005-02-15 06:52:34.373 [DEBUG] [127.0.0.1:40300-1] processContextPath() return 0
2005-02-15 06:52:34.373 [DEBUG] [127.0.0.1:40300-1] run fcgi processor.
2005-02-15 06:52:34.373 [DEBUG] [127.0.0.1:40300-1:fcgi] [ExtConn] reconnect()
2005-02-15 06:52:34.373 [DEBUG] [127.0.0.1:40300-1:fcgi] connection to [UDS://tmp/lshttpd/myfcgi.sock] on request #0, error: No su
ch file or directory!
2005-02-15 06:52:34.373 [DEBUG] [127.0.0.1:40300-1:fcgi] [ExtConn] reconnect()
2005-02-15 06:52:34.373 [DEBUG] [127.0.0.1:40300-1:fcgi] connection to [UDS://tmp/lshttpd/myfcgi.sock] on request #0, error: No su
ch file or directory!
2005-02-15 06:52:34.373 [DEBUG] [127.0.0.1:40300-1:fcgi] HttpIOLink::continueWrite()...
2005-02-15 06:52:34.373 [DEBUG] [127.0.0.1:40300-1:fcgi] write resumed!
2005-02-15 06:52:34.373 [DEBUG] [127.0.0.1:40300-1:fcgi] processNewReq() return 0.
2005-02-15 06:52:34.373 [DEBUG] [127.0.0.1:40300-1:fcgi] readToHeaderBuf() return 0.
2005-02-15 06:52:34.373 [DEBUG] [127.0.0.1:40300-1:fcgi] HttpIOLink::handleEvents() events=4!
2005-02-15 06:52:34.373 [DEBUG] [127.0.0.1:40300-1:fcgi] HttpIOLink::suspendWrite()...
2005-02-15 06:52:34.373 [DEBUG] [127.0.0.1:40300-1:fcgi] HttpConnection::sendHttpError(),code=503 Service Unavailable


I've set these server-level parameters for the "External Application":
Name test
Address UDS://tmp/lshttpd/myfcgi.sock
Max Connections 20
Environment
Initial Request Timeout (secs) 20
Retry Timeout (secs) 0
Response Bufferring No
Auto Start No
Command
Back Log 50
Instances 4
Priority 2


Any ideas?

Thanks


Niigel
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ruby On Rails 503 Service Unavailable Bug mroberto Ruby/Rails 6 03-24-2007 07:06 PM
fastcgi perl (reload) henpa Install/Configuration 5 11-09-2006 12:15 PM
strange error.. & 503 service Unavailable xinn Install/Configuration 23 10-11-2005 08:29 AM
503 Service Unavailable illidan Bug Reports 3 01-03-2005 09:27 AM
503 Service Unavailable George Install/Configuration 14 02-11-2004 01:23 AM


All times are GMT -7. The time now is 08:59 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.