[nylug-talk] VirtualDocumentRoot and PHP
Tim Gales
tgales at tgaconnect.com
Mon Feb 5 15:00:14 EST 2007
Seth Rothenberg wrote:
[snip]
>
>> Hi Seth,
>> what packages are installed wrt apache2 and php?
>> COLUMNS=200 dpkg -l |egrep "(apache)|(php)"|grep "ii"
>
> The good news is,
> I did a clean install, on a new server, and I at least got php
> working on the default domain. But still can't get virtual domains.
>
> cut -c-80 cmdout
> rothen at kx:~$ COLUMNS=200 dpkg -l |egrep "(apache)|(php)"|grep "ii"
> apache-utils 1.3.33-6sarge3 utility programs for webservers (transitiona
> apache2 2.2.3-3.2 Next generation, scalable, extendable web se
> apache2-doc 2.2.3-3.2 documentation for apache2
> apache2-mpm-prefork 2.2.3-3.2 Traditional model for Apache HTTPD 2.1
> apache2-utils 2.2.3-3.2 utility programs for webservers
> apache2.2-common 2.2.3-3.2 Next generation, scalable, extendable web se
> libapache2-mod-php4 4.4.4-8 server-side, HTML-embedded scripting languag
> php4-common 4.4.4-8 Common files for packages built from the php
>
> (Note, One person said "apt-get install apache2 libapache-mod-php4"
> but that doesn't seem to be everything I need to know :-)
>
> rothen at kx:/etc/apache2$ diff apache2.conf apache2.conf_original
>
> < LoadModule php4_module /usr/lib/apache2/modules/libphp4.so
> <
> < <IfModule mod_php4.c>
> < AddType application/x-httpd-php .php .phtml .php3
> < AddType application/x-httpd-php-source .phps
> < </IfModule>
>
> The error message I get is this...
> NameVirtualHost *:0 has no VirtualHosts
>
> (and google gives me a nice run-around on that:-)
> (and of course, there are domains defined in
> sites-enabled and sites-available)
Do you have a vhost_alias_module which you can load?
>
> I'd appreciate any pointers.
http://httpd.apache.org/docs/2.0/vhosts/mass.html#overview
[snip]
--
T. Gales & Associates
'Helping People Connect with Technology'
http://www.tgaconnect.com
More information about the nylug-talk
mailing list