httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <Owen.Bo...@swx.com>
Subject RE: [users@httpd] CGI scripts
Date Wed, 08 Dec 2004 16:39:09 GMT
> -----Original Message-----
> From: Warron French [mailto:wfrench@xtria.com]
> Sent: Mittwoch, 8. Dezember 2004 17:35
> To: Users Apache (E-mail)
> Subject: [users@httpd] CGI scripts
> 
> 
> Hello all,
> 
> I have 2 servers, let's just label them as ti-dev (for 
> development) and tinet (the production server).  Both are 
> Running Linux, however the production Server is running RH ES 
> Linux 3.0 and the development box is running RH 9.0.  Both 
> have the CGI RPM installed.
> 
> The production server called tinet is running by way of the 
> RPM perl-CGI-2.81-88.7.i386.rpm and the development server 
> (ti-dev) is running with perl-CGI-2.81-88.3.i386.rpm.
> 
> Tinet is running Apache-2.0.52, and ti-dev is running Apache-2.0.40.
> 
> My problem:
> 
> ON ti-dev the following occurs with CGI scripts:
> at a unix shell:    the cgi/perl script produces the HTML coding.
> in the web browser:  the cgi/perl script produces the HTML 
> page as we expect it to look like.
> 
> ON Tinet however, the following occurs with CGI scripts:
> at a unix shell:    the cgi/perl script produces the HTML coding.
> in the web browser:   the actual perl script code shows 
> within the browser.
> 
> 
> 
> Is there a feature or "statement" I forgot to make on the 
> Tinet server that would explain this difference?

Of course. You haven't told apache that requests leading to this
directory should cause the file to be executed rather than printed. See
"ScriptAlias", eg:

ScriptAlias /cgi /path/to/your/cgi/dir

And read: http://httpd.apache.org/docs-2.0/howto/cgi.html

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 
> 
> Thank you all for your assistance in advance, and have a ...
> 
> 
> Merry Christmas & Happy New Year!
> Warron French
> Sr. Network Engineer
> Xtria, LLC
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
>

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message