LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-24-2005, 10:40 AM   #1
sortia
LQ Newbie
 
Registered: Jan 2005
Location: uk
Distribution: CentOS / Ubuntu
Posts: 22

Rep: Reputation: 15
Apache & CGI error 500


Running Fedora 2, Apache 2.0.49

Sorry - I know this question has been asked / answered 1000's of times but i just cant get it to work!!!

cgi in apache...im sure its a problem with my httpd.conf file

(first post wont let me use a url so change the ,)
my full httpd.conf is at www,waxapple.com/httpd.conf.txt

i have chmod'ed the test.cgi file to 777
ran 'perl test.cgi' in terminal and it works 100%

just always get '500 internal server error'

been looking for hours but cant find a working script example!!
if somebody can point me to a working script???

many thanks
 
Old 01-24-2005, 10:54 AM   #2
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
Code:
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>


<Directory "/var/www/html">

    Options Indexes FollowSymLinks

    AllowOverride None

    Order allow,deny
    Allow from all

</Directory>
Add option ExecCGI


Code:
AddHandler cgi-script .cgi
i like to use
Code:
AddHandler cgi-script .cgi .pl

Last edited by secesh; 01-24-2005 at 10:56 AM.
 
Old 01-24-2005, 11:38 AM   #3
sortia
LQ Newbie
 
Registered: Jan 2005
Location: uk
Distribution: CentOS / Ubuntu
Posts: 22

Original Poster
Rep: Reputation: 15
thank you!!!!
 
  


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
Perl-CGI 500 Error tzarcone Programming 1 07-01-2005 02:45 AM
RH 8.0 CGI 500 error (apache) 3Dxx Linux - General 46 06-27-2005 05:51 AM
HELP! CGI problem : HTTP 500 - Internal server error eech55 Programming 2 10-11-2004 11:27 AM
apache & cgi scripts maze_fire Linux - Networking 1 08-12-2004 02:58 PM
cgi error in from apache nrmx Linux - Software 1 05-02-2003 07:54 AM


All times are GMT -5. The time now is 03:05 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration