LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-14-2003, 12:52 PM   #1
mapage
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, 01:09 PM   #2
mapage
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, 01:25 PM   #3
AltF4
Member
 
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
</Location>
--------------------------------

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:20 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
Open Source Consulting | Domain Registration