cgi not working :(

Nelson Garcia garcian002 at hawaii.rr.com
Sun Aug 26 22:29:26 PDT 2001


Unless that was only a typo in your email, try "var/www/cgi-bin/" (without
the "s")
Try putting a known good script there like htsearch, testcgi, or whatever
came with your distro and see what happens.

> -----Original Message-----
> From: Ronnie [mailto:rlivings at hawaii.edu]
> Sent: Sunday, August 26, 2001 6:56 PM
> To: Linux & Unix Advocates & Users
> Subject: [luau] cgi not working :(
>
>
> hello, Warren help us set up redhat this past tuesday and today while
> moving some scripts over to the redhat machine i noticed that the scripts
> wouldnt work.  The script alias in the httpd.conf file is this (if i
> remember right)
>
>   ScriptAlias /cgi-bin/  /vars/www/cgi-bin/
>
> which correct me if im wrong means i put the cgi files in the directory
> vars/www/cgi-bin  but to view them i would look under
>
>   http://someurl/cgi-bin/scriptname
>
> I tried viewing the script but i kept getting the 500 error, so i compiled
> my script and i got this error:
>
>  (offline mode: enter name=value pairs on standard input)
> log=ronnie
> pwd=ronnie
> install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC
> contains:
> /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
> /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
> /usr/lib/perl5/site_perl .) at (eval 4) line 3, <STDIN> line 2.
> Perhaps the DBD::mysql perl module hasn't been fully installed,
> or perhaps the capitalisation of 'mysql' isn't right.
> Available drivers: ADO, ExampleP, Multiplex, Pg, Proxy.
>  at testtopicmsg.cgi line 6
>
> Im assuming this means that DBD is not installed so i download the dbd for
> mysql from here:
>
>   http://www.lynxafrica.demon.co.uk/dbi/
>
> but when i try and compile the perl file eventually it says that mysql.h
> not found.  help!
>
> sorry for the long email
>
>



More information about the LUAU mailing list