Apache Server

Couldn’t get test.cgi to execute in my userspace (although PHP worked fine). Tried all kinds of settings in httpd.conf and with .htaccess file but to no avail.

So, resigned, I put index.html into /Library/WebServer/Documents/ and put test.cgi into /Library/WebServer/CGI-Executables/ (remembering to chmod +x test.cgi).


http://localhost opens index.html and

<form name=”form1″ method=”post” action=”cgi-bin/test.cgi”>
<input type=”submit” name=”Submit” value=”Submit”></form>

executes successfully!