diff --git a/chapters/install.macosx.xml b/chapters/install.macosx.xml index 336e2f21c7..051ce170df 100644 --- a/chapters/install.macosx.xml +++ b/chapters/install.macosx.xml @@ -1,5 +1,5 @@ - + Unix/Mac OS X installs @@ -181,31 +181,38 @@ setenv OPTIM=-O2 Type sudo apxs -i -a -n php4 libphp4.so - - Now type sudo open -a TextEdit /etc/httpd/httpd.conf. - TextEdit will open with the web server configuration file. Locate these - two lines towards the end of the file: (Use the Find command) - + + + Now type sudo open -a TextEdit /etc/httpd/httpd.conf. + TextEdit will open with the web server configuration file. Locate these + two lines towards the end of the file: (Use the Find command) + - - Remove the two hash marks (#), then save the file and quit TextEdit. - - - Finally, type sudo apachectl gracefulto restart the - web server. + + Remove the two hash marks (#), then save the file and + quit TextEdit. + + + + + Finally, type sudo apachectl graceful to restart + the web server. + + + PHP should now be up and running. You can test it by dropping a file into your Sites folder which is called test.php. Into that file, write this line: - <?php phpinfo() ?>". + <?php phpinfo() ?>. - Now open up 127.0.0.1/~your_username/test.php in your web browser. - You should see a status table with information about the PHP module. + Now open up 127.0.0.1/~your_username/test.php in your web + browser. You should see a status table with information about the PHP module.