On Tue, Oct 12, 2004 at 08:01:14PM +0100, Jon Dowland wrote:
> On Tue, 12 Oct 2004 14:28:52 -0400, Antonio Rodriguez
> <[EMAIL PROTECTED]> wrote:
> > I have some problems with cgi that I can't figure out. I've installed
> > every package that has cgi.pm, 
> 
> To see if you have CGI.pm handy in Perl's include path, execute the following
> 
> $ find `perl -e 'print "@CGI"'` -name \*.pm -print | grep -i cgi
> 

This is weird:

[EMAIL PROTECTED]:~$ find `perl -e 'print "@CGI"'` -name \*.pm -print | grep -i cgi
[EMAIL PROTECTED]:~$
Nothing.

> Do you have libcgi-perl installed? I gather from your URL that you are
> using unstable. You could use the debian packages to get your perl
> stuff, or CPAN:
> 
> # perl -MCPAN -e 'install CGI'
> 
> perhaps. Think about which route you want before you go down that path though
> 

[EMAIL PROTECTED]:~$ dpkg -s libcgi-perl
Package: libcgi-perl
Status: install ok installed
Priority: optional
Section: perl
Installed-Size: 412
Maintainer: Manoj Srivastava <[EMAIL PROTECTED]>
Architecture: all


> > [Tue Oct 12 14:19:42 2004] [error] (2)No such file or directory: exec of 
> > /home/tony/cgi/try failed
> > [Tue Oct 12 14:19:42 2004] [error] [client 127.0.0.1] Premature end of script 
> > headers: /home/tony/cgi/try
> 
> What lines have you added to httpd.conf (and other conf modules)
> relating to the directory /home/tony/cgi ? Should it not be something
> like cgi-bin, or /home/tony/public_html/cgi ? Is here a .htaccess file
> in this directory, if so what is the contents?


ScriptAlias /cgi/ /home/tony/cgi/
#and a little after
<Directory /home/tony/cgi/>
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>

I think that this is not the problem because another script that I
copied into the same directory from begining perl at
http://learnperl.org did work fine.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to