httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Cohen" <>
Subject RE: [users@httpd] CGI hangs on WinXP
Date Mon, 19 May 2003 19:52:23 GMT
Couple of things in a quick checklist:
1. do you have the shebang line pointing to your perl executable? (should be
like: #!c:\perl\bin\perl.exe)
2. try running http://localhost/cgi-bin/ as a test, what's the
result? Do you see the environment variables?
3. which version of perl are you using? Is it 5.8x or 5.6x?
4. when you doubleclick on at the first time, you would get a
popup window: "open with.." choose the perl.exe that you have installed and
assign the checkbox that will associate the .pl extension to perl.exe, that
way you can try out your .pl scripts from the command line.
5. if it is possible for you, try installing any of the packages into
folders without spaces, such as c:\apache\apache2, c:\apache\perl or
anything similar, it might cause you troubles in the future and you won't
need to use " " when you enter folder's names.

All the best and good luck,
Jeff Cohen
Tel. (416) 917-2324
GEJ-IT Networks!

> -----Original Message-----
> From: David Wilson []
> Sent: Monday, May 19, 2003 1:52 PM
> To: Apache Users
> Subject: [users@httpd] CGI hangs on WinXP
> I am currently out of work, I am attempting to pick up CGI, mod_perl, PHP,
> and
> MySQL.  To that end, I would like to set up an Apache server on my home PC
> serve local pages, I do not need or desire remote access.  I am having
> getting apache to run CGI scripts.
> My PC is running WinXP upgraded from Win98.  I have CYGWIN and ActivePerl
> both installed, they don't seem to be stepping on each other's toes.
> I installed Apache 2.0.45 using the default install params.  I modified
> httpd.conf
> as follows:
> < ServerAdmin
> > ServerAdmin
> < DirectoryIndex index.html index.html.var
> > DirectoryIndex index.htm index.html index.html.var
>   <Directory "C:/Program Files/Apache Group/Apache2/cgi-bin">
>       AllowOverride None
> <     Options None
> >     Options All MultiViews
>       Order allow,deny
>       Allow from all
>   </Directory>
>   AddType application/x-tar .tgz
>   AddType image/x-icon .ico
> > AddType script .cgi
> > AddType script .pl
> > #AddHandler cgi-script .cgi
> < AddHandler cgi-script .cgi .pl
> My immediate goal is to get a CGI script to execute.  For a CGI script,
> I am using the verbatim script include in Apache
> (C:\Program Files\Apache Group\Apache2\cgi-bin\
> I have created the following FormTest.htm file to invoke the CGI script:
> (C:\Program Files\Apache Group\Apache2\htdocs\FormTest.htm):
> <HTML>
> Form Test Page
> </TITLE>
> <BODY>
> <CENTER><H1>Form Test Page</H1></CENTER>
> <FORM METHOD="post" ACTION="/cgi-bin/">
> <P>Enter input here:
> <INPUT TYPE="text" NAME="value">
> </P>
> </FORM>
> </BODY>
> </HTML>
> This page displays correctly, but when I enter data into the form field
> and hit enter, the screen goes blank and stays that way.  The URL
> window shows
> C:\Program Files\Apache Group\Apache2\htdocs\FormTest.htm.
> The back button restores the form.
> I added code near the top of to create a file, which file
> never gets created, indicating that never gets executed
> (or else the CGI doesn't have permissions to create the file).  At any
> rate, with my limited experience, I am running out of ideas.  If any
> of you see anything grossly wrong with my settings or form, I could
> really use some help right now.
> Thanks in advance,
> Dave Wilson

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message