Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache 2.2.4, ActPerl 5.8.8.820, Win2K .pl won't resolve |
|
Author |
|
donphillipe
Joined: 01 Apr 2007 Posts: 1
|
Posted: Sun 01 Apr '07 23:48 Post subject: Apache 2.2.4, ActPerl 5.8.8.820, Win2K .pl won't resolve |
|
|
This is so weird, this worked the first time I tried it but after stopping and restarting Apache, the printenv.pl file will no longer resolve and IE6 tries to download it as a file. (I might add that although it did resolve initially when the extension was .PL, the information shown did not have line breaks like it does when I rename the extension to .CGI. The exact same file when ended in CGI works fine.)
httpd.conf changes:
<Directory />
#added ExecCGI
Options FollowSymLinks ExecCGI
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
</Directory>
<Directory "C:/Program Files/Apache2.2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
AddHandler cgi-script .pl
*********END OF CONF file
If I try to resolve http://localhost/cgi-bin/printenv.pl with IE6, the file tries to download and is not interpreted, if I rename the same file to printenv.cgi the file resolves properly:
How can I force a XXX.pl file execute like it does when the extension is CGI ??
Output from http://localhost/cgi-bin/printenv.cgi .....
COMSPEC="C:\WINNT\system32\cmd.exe"
DOCUMENT_ROOT="C:/Program Files/Apache2.2/htdocs"
GATEWAY_INTERFACE="CGI/1.1"
HTTP_ACCEPT="*/*"
HTTP_ACCEPT_ENCODING="gzip, deflate"
HTTP_ACCEPT_LANGUAGE="en-us"
HTTP_CONNECTION="Keep-Alive"
HTTP_HOST="homeserv"
HTTP_USER_AGENT="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 1.0.3705)"
PATH="C:\usr\site\bin;C:\usr\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;D:\TOOLS;C:\Program Files\PHP"
PATHEXT=".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH"
QUERY_STRING=""
REMOTE_ADDR="0.0.0.0"
REMOTE_PORT="0"
REQUEST_METHOD="GET"
REQUEST_URI="/cgi-bin/printenv.cgi"
SCRIPT_FILENAME="C:/Program Files/Apache2.2/cgi-bin/printenv.cgi"
SCRIPT_NAME="/cgi-bin/printenv.cgi"
SERVER_ADDR="192.168.0.202"
SERVER_ADMIN=" "
SERVER_NAME="homeserv"
SERVER_PORT="80"
SERVER_PROTOCOL="HTTP/1.1"
SERVER_SIGNATURE=""
SERVER_SOFTWARE="Apache/2.2.4 (Win32)"
SYSTEMROOT="C:\WINNT"
WINDIR="C:\WINNT"
Note: PHP is installed in directory C:\USR (default changed from C:\Perl) |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 02 Apr '07 13:44 Post subject: |
|
|
How does the line with the AddHandler for the cgi look like?
Maybe you need to set AddType
e.g.
AddType cgid-script .pl |
|
Back to top |
|
|
|
|
|
|