![]() |
CGI Scripts not executing, pls help
I am running a basic login script with username and password, really text book, ive done this so many times, but now when I execute the script its like there is no interpreter and all I get is text of the actual script. The first line reads #!/usr/bin/perl which is where perl is installed by default cause im using RedHat 9.
Can anone help ? |
Is the script placed in the cgi-bin folder? Does Apache understand to do +ExecCgi on that folder?
Or, as with Fedora Core 3, I have this line: Code:
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" Good luck |
hmmm maybee thats the prob, im guessing thats in httpd.conf.
If that is the case, say im running 3 sites each with different virtual hosts and for each site i have different folders in /var/www/site1, or /var/www/site1, that means I will have different /cgi folders for each site. I guess I just have to add the script alias line in each virtual host right? |
Yes, sorry, I was talking about /etc/httpd/conf/httpd.conf indeed.
You could do the above line for each virtual site indeed.. like, per site: Code:
<VirtualHost ....> Code:
<VirtualHost ....> Code:
<VirtualHost ....> Good luck.. |
All times are GMT -5. The time now is 10:08 AM. |