How do I setup a localhost using the "Sites" folder on my Mac?

link|improve this question
feedback

1 Answer

Open System Preferences » Sharing, and enable Web Sharing.

You'll find the URLs specified there. For example, my Sites folder /Users/danielbeck/Sites is accessible as http://10.0.1.2/~danielbeck/.

link|improve this answer
Thank you, but I wanted to get local php working such as WordPress. I have seen many posts, but none about the "Sites" folder. – david Dec 24 '10 at 0:41
@david In that case, your question is lacking your actual requirements. You need to configure Apache to support PHP, just as on any other system. httpd.conf is in /etc/apache2, and while it's been a while since I worked with it, you might have success by uncommenting the line containing php5_module, and toggling Web Sharing to restart Apache. – Daniel Beck Dec 24 '10 at 0:44
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.