Share this Page URL
Help

Chapter 8. The Web > Turning on PHP - Pg. 352

file permissions deny server execution: /Library/WebServer/CGI-Executables/test-cgi Bingo! This tells us exactly what went awry: the file permissions were incorrect. For Apache to run a CGI script, the script in question needs to have execute permissions [Hack #55]. To give the test-cgi file the correct permissions, type the following on the command line [Hack #48]: % cd /Library/WebServer/CGI-Executables % chmod 755 test-cgi After doing this, load the URL again, and you should be happily greeted with gobs of environment information. (To learn more about permissions and the chmod utility, see [Hack #49].) With the basics of CGI out of the way, you can now install CGI-based applications to complement your intranet. Need a content management system for the developers to keep everyone up-to-date on their coding progress and discussions? Try the Movable Type (http://www.movabletype.org) weblog application. See Also · Apache Web-Serving with Mac OS X: Part 2 (http://www.macdevcenter.com/lpt/a// mac/2001/12/14/apache_two.html)