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 10:06:38 GMT
I just want to point out that nothing has worked.

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


Mime
View raw message