Claruz
Dogcow
I am having some problems with my built in Apache installation. I am running Mac OS X Client, not server, version 10.2. Here is the output from httpd -version:
Server version: Apache/1.3.26 (Darwin)
Server built: 07/27/02 14:29:15
I am trying to run cgi-scripts. I found the main "cgi-bin" folder to be /Library/WebServer/CGI-Executables. So that is where the cgi scripts are being run from. I keep getting "500 Internal Server Error". I have made sure that the permission is correct for the script. I also checked the #!/usr/bin/perl header of the script, and it appears to be correct. I have read all that I can find in the Apache manual about this and I can't see what I am doing wrong. Here is what the error log says about it :
[Fri Mar 21 12:54:37 2003] [error] (2)No such file or directory: exec of /Library/WebServer/CGI-Executables/perl_test.cgi failed
[Fri Mar 21 12:54:37 2003] [error] [client 127.0.0.1] Premature end of script headers: /Library/WebServer/CGI-Executables/perl_test.cgi
Running the script from the terminal work fine, even when I use "sudo -u www perl <script>" to try and emulate the permissions that the script would have when being run from the webserver. The script I am trying to run is part of the ikonboard 3.11 installation and is designed to test your webserver to see if everything will run fine. The script should be fine, all it does is check the Perl version, CGI version, sendmail path and some other simple stuff. I can post the script here if you want. Is there any other setup I need to do to run CGI scripts? If not, then what could be wrong?
Thanks for any help you can give.
Server version: Apache/1.3.26 (Darwin)
Server built: 07/27/02 14:29:15
I am trying to run cgi-scripts. I found the main "cgi-bin" folder to be /Library/WebServer/CGI-Executables. So that is where the cgi scripts are being run from. I keep getting "500 Internal Server Error". I have made sure that the permission is correct for the script. I also checked the #!/usr/bin/perl header of the script, and it appears to be correct. I have read all that I can find in the Apache manual about this and I can't see what I am doing wrong. Here is what the error log says about it :
[Fri Mar 21 12:54:37 2003] [error] (2)No such file or directory: exec of /Library/WebServer/CGI-Executables/perl_test.cgi failed
[Fri Mar 21 12:54:37 2003] [error] [client 127.0.0.1] Premature end of script headers: /Library/WebServer/CGI-Executables/perl_test.cgi
Running the script from the terminal work fine, even when I use "sudo -u www perl <script>" to try and emulate the permissions that the script would have when being run from the webserver. The script I am trying to run is part of the ikonboard 3.11 installation and is designed to test your webserver to see if everything will run fine. The script should be fine, all it does is check the Perl version, CGI version, sendmail path and some other simple stuff. I can post the script here if you want. Is there any other setup I need to do to run CGI scripts? If not, then what could be wrong?
Thanks for any help you can give.