Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-19-2002, 12:56 PM   #1
Registered: Apr 2001
Posts: 113

Rep: Reputation: 15
I Need Help With My Web Server

Hi every1,

The Situation:-
I have installed apache and mysql, on several different Distros of linux and they all work.... to a certain extent. For the life of me i cant get the DBI to work.

Wot I want to do:-
I want to make a CGI website link to a mysql database. I have used a few books and got some examples of code.

The Problem:-
I tested my server to see if the cgi is working, and it is working. But if i try a script which uses the database i get "Internal Server Error". Then i tried a perl script at the prompt and it errored saying it was missing a pm file. i found out that i needed to install DBI, DBD and mSql Modules. I had tonnes of problems ranging from "errors on line x" to just "fail" evertually after days of fiddling i manage to get the perl script working from the prompt, but its still not working on my apache webserver with cgi

I installed this on redhat 7 then tried slackware. the pc has a fresh installation of slack on it now and seems to be almost working apart from the cgi databe access.

Has any1 got any ideas wot i'm doing wrong. This is for my project for uni, i need it to test my scripts



Last edited by smurf; 03-19-2002 at 03:16 PM.
Old 03-19-2002, 01:56 PM   #2
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Rep: Reputation: 30
You need the DBD and DBI installed for mysql. Go to for more info on this. The modules are available on cpan.

If you installed these and the scripts aren't working as cgi, first check to see if the script is executable, then mack sure the directory you are running from is setup in the httpd.conf apache file to be a cgi directory.
Old 03-19-2002, 03:19 PM   #3
Registered: Apr 2001
Posts: 113

Original Poster
Rep: Reputation: 15
Thnx for the reply

I've done all that u have said already mate.. and i know the cgi server works cos it works with simple perl scripts that dont include DBI.

Am i to install some sort of perl hack for cgi ????



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant make web server run my local web page... Nik0s Linux - Newbie 22 10-08-2006 10:30 PM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
adding more web servers to make web server farm linuxboy69 Linux - Networking 5 07-09-2004 09:50 AM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 12:03 PM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 02:38 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration