Testing the Macintosh Web Server (PHP developer)
You can use the Apache Web server that is already installed on the Macintosh to develop PHP applications.
To test the server, create a simple HTML page called "mytestfile.html" and save it in the/users/your_user_name/sites/folder on the Macintosh (where Your_user_name is your Macintosh user name). The HTML page can consist of one row, for example:
<p>my Web server is working.</p>
Then, enter the following URL in your Web browser to open the test page in your Web browser with an HTTP request:
Http://localhost/~your_user_name/myTestFile.html
Note By default, the Apache server is running on port 80.
If your browser displays your page, the WEB server is running fine. If the browser cannot display the page, open System Preferences to view the sharing preferences panel to see if the WEB server is started. The personal Web sharing option should be enabled.
By default, the Apache Web server cannot process PHP, and you must configure it to use PHP.