LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-21-2003, 09:51 AM   #1
hso_sof
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 test.pl file in /var/www/cgi-bin

How do I get my browser to execute the code?
 
Old 08-22-2003, 04:44 AM   #2
Orococco
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, 09:55 AM   #3
boToo
Member
 
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, 11:26 AM   #4
mylo2003
Member
 
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.

http://www.linuxquestions.org/questi...threadid=80658

Good luck!
 
  


Reply


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 05:06 AM
Running perl scripts outside of cgi-bin ylikone Programming 1 09-08-2005 05:34 AM
Disabling Perl/CGI Scripts totally renegadeavenger Linux - General 1 08-14-2005 08:28 PM
Of Perl CGI scripts and Sendmail Chrax Programming 2 06-06-2005 05:21 PM
learning to write Perl CGI scripts djgerbavore Programming 1 10-19-2004 01:31 PM


All times are GMT -5. The time now is 04:48 AM.

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