httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Knipe" <sav...@savage.za.org>
Subject Re: [users@httpd] CGI Error
Date Tue, 06 May 2003 22:26:11 GMT
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


Mime
View raw message