AppWeb Forum

Support for the AppWeb HTTP Server
It is currently Wed Sep 08, 2010 4:03 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: cgi erro
PostPosted: Thu Jan 03, 2008 7:17 am 
Offline

Joined: Thu Jan 03, 2008 6:54 am
Posts: 48
hello everybody ! I'm a newer to appweb,there are some error in my logs/error.log

default:1 pool.0 Error: 503 "Service Unavailable" for "/cgi-bin/helloworld.cgi", file "/var/www/appweb-default/cgi-bin/helloworld.cgi": Can't run CGI process: /cgi-bin/helloworld.cgi, URI /cgi-bin/helloworld.cgi


but in my appweb.conf ,I have set as:

<if CGI_MODULE>
LoadModule cgi libcgiModule
AddHandler cgiHandler .cgi .cgi-nph .bat .cmd .pl .py
<Location /cgi/>
SetHandler cgiHandler
ExtraPath on
</Location>
ScriptAlias /cgi-bin/ "$DOCUMENT_ROOT/cgi-bin"
#
# These actions specify the program to run for each Perl or Python
# script. They map to the extensions specified in the mime.types for for
# these mime types. Alternatively, you may use put all your scripts in
# the subdirectories specified by the releavant Location blocks below.
# For perl and python, you can also put "#!/path/to/program" as the first
# line. This works on Windows as well. The .bat and .cmd extensions are
# really only for Windows. For Windows, update the program paths with
# the right paths.
#
Action application/x-appweb-perl /usr/bin/perl
Action application/x-appweb-python /usr/bin/python
</if>

but it does'nt work ,plz help me!
thank u!


Top
 Profile  
 
 Post subject: Re: cgi erro
PostPosted: Fri Jan 04, 2008 6:22 pm 
Offline

Joined: Tue Aug 01, 2006 12:23 am
Posts: 82
Your configuration seems to be working. When the request came in the cgiHandler correctly tried to handle it.

It looked for and tried to execute /var/www/appweb-default/cgi-bin/helloworld.cgi but for some reason was unsuccessful.

Can you run /var/www/appweb-default/cgi-bin/helloworld.cgi on the command line without appweb?

Turn your logging level all the way up and post the log you get after that request comes in.


Last edited by sobachatina on Mon Jan 07, 2008 5:51 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: cgi erro
PostPosted: Mon Jan 07, 2008 5:16 am 
Offline

Joined: Thu Jan 03, 2008 6:54 am
Posts: 48
Hi,sobachatina!

Thank U very much ! When I excute the script ,I found the mode of the script is 744, after chmod 777,it worked.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
[ Time : 0.138s | 12 Queries | GZIP : Off ]