Re: Enabling PHP in Leopard

Re: Enabling PHP in Leopard

am 03.01.2008 20:35:38 von Tim Streater

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

> In article <475f4266$0$20710$c3e8da3@news.astraweb.com>,
> Warren Oates 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

Re: Enabling PHP in Leopard

am 04.01.2008 00:30:14 von Warren Oates

In article ,
Tim Streater wrote:

> 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.

Hmm. That sounds like a bug in the upgrade process.
--
W. Oates