[nylug-talk] VirtualDocumentRoot and PHP
Seth Rothenberg
seth at pachai.net
Sat Feb 3 23:56:16 EST 2007
Sorry to revive an old thread, but just as kind folks
were helping out, we had a loss in the family and I
dropped off the face of Nylug for a couple months.
> On Wed, Nov 01, 2006 at 10:52:28AM -0500, Seth Rothenberg wrote:
>> Greetings,
>> I have a server running apache 1.3 and using
>> VirtualDocumentRoot and PHP....and I want to
>> do the same in Apache2.
The debian mass hosting how-to is for apache 1.3
I found another how-to for apache2, but either
there's a step missing, or a step wasn't followed
(by the silly guy at the keyboard).
> 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)
I'd appreciate any pointers.
BTW, it is my guess that a proper mass-hosting install
has very little proprietary/security info in it,
if diagnosis requires a look at the actual config,
I can do that.
BTW, isn't this something that everyone and their brother
wants to do? It is STILL a pleasure adding domains
to my apache 1.3 server. It's just time to move up.
(remember that post about sharing costs with a friend?
he really wants Apache2, and I really want mass hosting :-)
Thanks
Seth
More information about the nylug-talk
mailing list