Listen

Description

Web Sharing Apache2 & PHP5 In this tutorial I will show you how you can take advantage of the built in Apache Server on your MAC OS X “Leopard” install, and show off your web pages to the world not just your own home network.

First you will need to make all files unvisible via terminal type:

defaults write com.apple.Finder AppleShowAllFiles YES

to undo this type:
defaults write com.apple.Finder AppleShowAllFiles NO

go to folder path: private/etc/apache2/httpd.conf

and open up httpd.conf with a text editor such as Text Wrangler which is free.

once opened up scroll down the page till you see.

#LoadModule php5_module libexec/apache2/libphp5.so

and remove the # symbol save your page & restart your Web Server from the sharing pane.

Now your able to view php files not just html files.