November 2012
Intermediate to advanced
424 pages
11h 59m
English
| Tip 171 | Enable Apache and PHP |
Here’s a corollary for the sidebar OS X for Admins and Software Developers. Although the Apache 2 web server and PHP 5 scripting language are both included with a standard desktop installation of OS X Mountain Lion, neither is configured to work out of the box. If you’re a web developer, you’ll most likely want to change this; the following instructions explain how.
To start Apache, open a Terminal window, and type sudo apachectl start. Type your password when prompted, and note that you’ll need to do this several times when prompted during the following steps. To stop Apache, type sudo apachectl stop. You can test Apache by visiting http://localhost in your browser.
Document root ...
Read now
Unlock full access