Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-14-2003, 01:52 PM   #1
LQ Newbie
Registered: Mar 2003
Posts: 3

Rep: Reputation: 0
Perl CGI problems...

The problem is that when I open a perl CGI (As simple as hello world) from a web browster, I get the perl source code instead of hello world.

I'm using a stock Redhat 8.0 install. In the /etc/httpd/conf.d I have perl.conf which is supposed to load mod_perl (I think...) so I can't figure out why it isn't working. The file extension of the perl file is .cgi.

Can anyone help me?
Old 03-14-2003, 02:09 PM   #2
LQ Newbie
Registered: Mar 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Okay... Think I figured it out. I tried to run the CGI from the CGI directory, which worked. From there I took the # off of the line in the httpd.conf which read

AddHandler cgi-script .cgi

So now it works. Thanks for everyone who though of helping...
Old 03-14-2003, 02:25 PM   #3
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
check your httpd.conf for something like this:
# set /cgi-bin for CGI execution
<Location /cgi-bin>
AllowOverride None
Options +ExecCGI -Includes
SetHandler cgi-script

Does the directory of your CGI program have the +ExecCGI option set ?


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
Perl CGI:Can't locate supermyself Programming 13 09-10-2007 07:22 AM
CGI/Perl script problems. Randvegeta Linux - Software 8 12-30-2004 01:24 AM
perl cgi neil Programming 3 07-07-2004 05:52 AM
cgi perl : I cant get perl to append my html file... the_y_man Programming 3 03-22-2004 06:07 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration