[nylug-talk] VirtualDocumentRoot and PHP

Ron Guerin
Wed Nov 1 12:29:34 EST 2006


Seth Rothenberg wrote:
> Greetings,
> I have a server running apache 1.3 and using
> VirtualDocumentRoot and PHP.
> 
> And I have a server running apache2 and VirtualDocumentRoot
> and not succeeding in running PHP.
> 
> I have googled a bunch and found a few opinions
> on how to do this, such as uncommenting the AddType
> directive in the config....and NOT doing that.
> 
> Has anyone seen a How-to on this,
> apache2 php4 on Debian

apt-get install apache2 libapache-mod-php4

Seriously.  That's the entire procedure, and if it doesn't work, it's
not your fault.  Debian's PHP packages (4 & 5) have been somewhat broken
lately, failing to reliably do the most basic things necessary for PHP
to work with Apache.

Start by making sure the Apache2 /etc/apache/modules.conf (or whatever
they call it, I forget how A2 lays things out) is loading the PHP4 module.

- Ron


More information about the nylug-talk mailing list