Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PHP on Mac OSX

Enthusiast ,
Mar 12, 2009 Mar 12, 2009
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
TOPICS
Server side applications
356
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 12, 2009 Mar 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 12, 2009 Mar 12, 2009
LATEST
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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines