httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cody Harris <h...@ns.sympatico.ca>
Subject RE: [users@httpd] CGI Error
Date Wed, 07 May 2003 17:13:51 GMT
The script works on my windows server, but not linux. That sounds...odd.

At 12:54 PM 5/7/2003 +0200, you wrote:
> >-----Original Message-----
> >From: Cody Harris [mailto:hchs@ns.sympatico.ca]
> >
> >
> >I just want to point out that nothing has worked.
>
>Are you aware that there is pretty extensive documentation on the apache
>site which walks you through CGI programming? Have you looked at any of
>it? Here it is: http://httpd.apache.org/docs/howto/cgi.html
>
>I suggest you start at the beginning and try to get the simple stuff
>working, then you can expand a little and add on other stuff. I rather
>get the impression that you are trying to run before you can walk...
>
>Rgds,
>Owen Boyle
>Disclaimer: Any disclaimer attached to this message may be ignored.
>
> >
> >At 07:27 PM 5/6/2003 -0300, you wrote:
> >>doesn't this do the same thing? (Gotten from my conf)
> >>
> >><Directory /home/*/public_html>
> >>     AllowOverride All
> >>     Options MultiViews Indexes Includes FollowSymLinks
> >>     Order allow,deny
> >>     Allow from all
> >></Directory>
> >>
> >><Directory /home/*/public_html/cgi-bin>
> >>      Options +ExecCGI -Includes -Indexes
> >>      SetHandler cgi-script
> >></Directory>
> >>
> >>
> >>At 12:26 AM 5/7/2003 +0200, you wrote:
> >>>Ok,
> >>>
> >>>So the apache is more than likely not configured to execute
> >.pl scripts...
> >>>You'll need to configure apache accordingly now.
> >>>
> >>>    ScriptAlias /<apache directory> /<cgi directory>
> >>>    AddHandler cgi-script .cgi
> >>>         <Directory /<cgi directory>>
> >>>         Options ExecCGI FollowSymLinks
> >>>         </Directory>
> >>>
> >>>as Steven has indicated.  If you want apache to execute .pl
> >scripts, then
> >>>you need a AddHandler for that to tell apache what to do
> >with .pl scripts...
> >>>For example:
> >>>AddHandler cgi-scripts .pl
> >>>
> >>>IMHO, just move the scripts to .cgi again - they should
> >execute from the
> >>>shell, regardless of the extensions.  Apache would seem to
> >me to only be
> >>>configured to execute .cgi scripts.
> >>>
> >>>
> >>>----- Original Message -----
> >>>From: "Cody Harris" <hchs@ns.sympatico.ca>
> >>>To: <users@httpd.apache.org>
> >>>Sent: Wednesday, May 07, 2003 12:21 AM
> >>>Subject: Re: [users@httpd] CGI Error
> >>>
> >>>
> >>> > [root@vectec cgi-bin]# ./test.pl
> >>> > Content-Type: text/html; charset=ISO-8859-1
> >>> >
> >>> > <?xml version="1.0" encoding="utf-8"?>
> >>> > <!DOCTYPE html
> >>> >          PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
> >>> >          "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
> >>> > <html xmlns="http://www.w3.org/1999/xhtml"
> >>> > lang="en-US"><head><title>Untitled Document</title>
> >>> > </head><body></body></html>[root@vectec cgi-bin]#
> >>> >
> >>> > But internal error from Apache.
> >>> >
> >>> > And for the guy that wanted me to do all that stuff with
> >dirs, you've got
> >>> > me wondering what you mean.
> >>> >
> >>> > At 12:17 AM 5/7/2003 +0200, you wrote:
> >>> > >#!/usr/bin/perl
> >>> > >
> >>> > >use CGI;
> >>> > >
> >>> > >$q = new CGI;                        # create new CGI object
> >>> > >print $q->header,                    # create the HTTP header
> >>> > >       $q->start_html(''),            # start the HTML
> >>> > >       $q->end_html;                  # end the HTML
> >>> > >exit;
> >>> >
> >>> >
> >>> >
> >>> >
> >---------------------------------------------------------------------
> >>> > 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
> >>> >
> >>>
> >>>
> >>>---------------------------------------------------------------------
> >>>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
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>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
> >
> >
> >
> >---------------------------------------------------------------------
> >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



---------------------------------------------------------------------
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