Hey Everyone. 
I have recently been learning how to write CGI scripts using PERL. I Have also figured out how to set up Apache on my mac. I am running a slightly older version, (Apache 2.2.11 to be exact.)
while configuring my httpd.conf file i did the following to enable CGI to run from my directory folder:
<Directory />
Options +ExecCGI
AllowOverride None
Order deny,allow
Deny from all
</Directory>
my server seems to be working alright, but now the problem i am having is when i go to run some of my CGI scripts I get the following error:
[error] [client ::1] (2)No such file or directory: exec of '/Library/WebServer/Documents/projectthread/dynamic_form.cgi' failed,
[error] [client ::1] Premature end of script headers: dynamic_form.cgi,
I have been wondering if this is maybe a problem with the CHMOD settings of these files, or the fact that I wrote some of the code on a P.C. (not by choice) Have tried a few things but nothing seems to be working.
If any body could offer any advice it would be much appreciated.
Cheers.
I have recently been learning how to write CGI scripts using PERL. I Have also figured out how to set up Apache on my mac. I am running a slightly older version, (Apache 2.2.11 to be exact.)
while configuring my httpd.conf file i did the following to enable CGI to run from my directory folder:
<Directory />
Options +ExecCGI
AllowOverride None
Order deny,allow
Deny from all
</Directory>
my server seems to be working alright, but now the problem i am having is when i go to run some of my CGI scripts I get the following error:
[error] [client ::1] (2)No such file or directory: exec of '/Library/WebServer/Documents/projectthread/dynamic_form.cgi' failed,
[error] [client ::1] Premature end of script headers: dynamic_form.cgi,
I have been wondering if this is maybe a problem with the CHMOD settings of these files, or the fact that I wrote some of the code on a P.C. (not by choice) Have tried a few things but nothing seems to be working.
If any body could offer any advice it would be much appreciated.
Cheers.