Skip to main content
Inspiring
March 12, 2009
Question

PHP on Mac OSX

  • March 12, 2009
  • 2 replies
  • 359 views
I have just started with PHP on a Mac, and I have just come across something that has me stopped me in my tracks. Where do I keep my actual website files?

I'm already using PHP on a PC and I have IIS running PHP rather than apache (cos' I do ASP too), so I keep all my sites and files in my wwwroot folder, but obviously, I don't have a wwwroot folder on a Mac, and so I am stumped!

Thanks.

Mat
This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Inspiring
March 12, 2009
OR
If you want a good understanding of PHP >...< Dreamweaver,
You might try the book that Dave Powers was too modest to promote:

Essential Guide To Dreamweaver CS4 With CSS, Ajax, And PHP

I was (am still) new to php and discovering the finer points of Dreamweaver.

Dave's book put me on a learning path that is serving me well...

I recommend it.
(I have no connection to Dave's vast financial empire. I just appreciate his
skillful understanding of the subjects covered in his book and his
willingness to help us 'newbies'.

Dan H.
.............................................
On 3/12/09 2:34 PM, in article gpbkjn$dl3$1@forums.macromedia.com, "David
Powers" <david@example.com> wrote:

> matthew stuart wrote:
>> I have just started with PHP on a Mac, and I have just come across something
>> that has me stopped me in my tracks. Where do I keep my actual website files?
>
> Depends on how you installed PHP on your Mac. If you're using the
> default installation of Apache, you can either locate your files in a
> subfolder of your Sites folder or in the Apache server root, which is at
> Macintosh HD:Library:WebServer:Documents.
>
> The Apache server root maps to http://localhost/. Your Sites folder maps
> to http://localhost/~username/, where "username" is your Mac username.

Inspiring
March 12, 2009
matthew stuart wrote:
> I have just started with PHP on a Mac, and I have just come across something
> that has me stopped me in my tracks. Where do I keep my actual website files?

Depends on how you installed PHP on your Mac. If you're using the
default installation of Apache, you can either locate your files in a
subfolder of your Sites folder or in the Apache server root, which is at
Macintosh HD:Library:WebServer:Documents.

The Apache server root maps to http://localhost/. Your Sites folder maps
to http://localhost/~username/, where "username" is your Mac username.

--
David Powers
Adobe Community Expert, Dreamweaver
http://foundationphp.com