[thelist] Set up a localhost on Mac OSX?

David McCreath mccreath at gmail.com
Fri Oct 5 12:10:46 CDT 2007


On 10/5/07, David Dorward <david at dorward.me.uk> wrote:
> On 5 Oct 2007, at 11:36, Barney Carroll wrote:
> > What's the simplest way of setting up a virtual host? Have no
> > frameworks installed or in mind.
>
> Install MAMP Pro. Point and click.

Depending on your needs, you can also simply turn on Personal Web
Sharing under "Sharing" in System Preferences. This creates two places
that you can place web pages on your machine.

The first is:

* Macintosh HD (or whatever your hard drive is
named)/Library/WebServer/Documents

That folder will respond to http://localhost/ in a browser. (It will
have a bunch of HTML documents in it that you can delete or put into
another folder.)

The second is:

* YourHomeFolder/Sites (or from the root: Macintosh
HD/Users/YourHomeFolder/Sites

That folder will respond to http://localhost/~YourHomeFolder/

If you need PHP, it's pretty simple to configure as well:

http://www.phpmac.com/articles.php?view=225

That article has a warning about its age, but it's accurate. It also
specifies using the Terminal, but you can edit the same file in BBEdit
or TextWrangler (or TextMate, etc., etc.).

All that said, there's no thing wrong with MAMP, either! :)

David

-- 
David McCreath
http://muledesign.com/
aim: dwmccreath
(907) 227-0966



More information about the thelist mailing list