You are here: Re: Enabling PHP in Leopard « PHP Programming Language « IT news, forums, messages
Re: Enabling PHP in Leopard

Posted by Tim Streater on 01/03/08 19:35

In article <475fdabc$0$18440$c3e8da3@news.astraweb.com>,
Warren Oates <warren.oates@gmail.com> wrote:

> In article <475f4266$0$20710$c3e8da3@news.astraweb.com>,
> Warren Oates <warren.oates@gmail.com> wrote:
>
> >
> > http://localhost/test.php
>
> I was tired last night and skipped some stuff and forgot some other
> stuff.
>
> The httpd.conf that comes with Leopard is set to serve stuff out of
> ~/Sites based on
>
> http://localhost/~short-username
>
> which is standard Apache, and which should work for you out-of-the-box
> if you haven't set up your server to only listen on your LAN, like I
> have. So put the files you want to serve into ~/Sites, where you'll find
> an index.html that should come up when you go to that URL.

What I discovered today, apropos of this, is that on the Mac Pro at
work, the above failed. This was probably because I had done an
upgrade-install. But the reason was that there was no shortusername.conf
file in /private/etc/apache2/users/. When I added one, things worked as
documented for serving web pages from ~/Sites/.

At home, where I had done an install from scratch, I found these files
there for the two users.

I also added:

AddType application/x-httpd-php .phtml

in:

/private/etc/apache2/other/php5.conf

-- tim

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация