LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache & CGI error 500 (https://www.linuxquestions.org/questions/linux-newbie-8/apache-and-cgi-error-500-a-281635/)

sortia 01-24-2005 10:40 AM

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

secesh 01-24-2005 10:54 AM

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

sortia 01-24-2005 11:38 AM

thank you!!!!


All times are GMT -5. The time now is 10:55 AM.