help setting up Apache to use cgi scripts
i am running fedora core 1
i did: ;apt-get install httpd' 'apt-get install perl' 'apr-get install perl-DBI' it setup folders in /var/www/ where there is a /html /cgi-bin folders i placed a .cgi file in the /cgi-bin/ folder and ensured that the file pointed to the installation of perl, made sure that both the folder and file where CHMODed to 755 (even 777 to be sure). And i still am getting a Internal server Error (500). I downloaded "redhat-config-httpd" program to try and edit my config file through a GUI, i thought i had set the configuration in that program to allow for cgi-scripts to be ran in the /var/www/cgi-bin folder but it still does not work. Yes i did try to re-start the server so i know that the changes i made are in effect. please please can someone help me? i've been sitting here tinkering trying to make it work for 4 and a half hours straight and have been scouring the internet to try and see if i can get help but nothings come up. I would give a link to my website but i am behind a university firewall and do not have a static IP accessable from the outside. |
output of "httpd -l" is (because i know this is important somehow
core.c prefork.c http_core.c mod_so.c so shouldn't i have some kind of mod_cgi file show up when i do this? |
ok, con someone please help me? i know it has to be my config file. When in the terminal i type "perl perl_test.cgi" my perl test file runs just fine. However when from a browser on my laptop i type in my local address: http://10.65.0.xx/cgi-bin/perl_test.cgi i get an internal server error. If i just type in http://10.655.0.xx/perl_test.cgi it just shows all the code of the perl file.
|
All times are GMT -5. The time now is 01:37 AM. |