Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-21-2003, 08:51 AM   #1
LQ Newbie
Registered: Aug 2003
Posts: 6

Rep: Reputation: 0
Question Running Perl/CGI scripts

I am a newbie to Linux and I just installed Mandrake 8.0. I'm trying to create a simple CGI script that prints some text, but I can't seem to get it to work. When I open the code in my browser it just shows the code instead of what it should be printing.

I put the file in /var/www/cgi-bin

How do I get my browser to execute the code?
Old 08-22-2003, 03:44 AM   #2
LQ Newbie
Registered: Aug 2003
Location: Germany
Distribution: Debian
Posts: 7

Rep: Reputation: 0
You have to install a webserver like Apache to run CGIs.
Old 08-22-2003, 08:55 AM   #3
Registered: Aug 2003
Distribution: Kubuntu
Posts: 49

Rep: Reputation: 15
i think he already have apache installed. can u run your cgi script from commandline? i dont know, its extension has to be cgi or ,
Old 08-22-2003, 10:26 AM   #4
Registered: Jul 2003
Posts: 113

Rep: Reputation: 15
I'm still tackling this. I can't get a chat cgi script to run. You have to throw all this crap in the apache httpd.conf file to get it to work. Here is a link that might help.

Good luck!


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problems in running cgi/perl scripts... raymond Linux - General 17 02-09-2010 04:06 AM
Running perl scripts outside of cgi-bin ylikone Programming 1 09-08-2005 04:34 AM
Disabling Perl/CGI Scripts totally renegadeavenger Linux - General 1 08-14-2005 07:28 PM
Of Perl CGI scripts and Sendmail Chrax Programming 2 06-06-2005 04:21 PM
learning to write Perl CGI scripts djgerbavore Programming 1 10-19-2004 12:31 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:16 PM.

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
Open Source Consulting | Domain Registration