Apache vhost on win2k [was RE: [thelist] PHP 4.2 on Apache 2 on win2k]

Peter Kaulback pkaulbak at idirect.ca
Sat May 18 12:05:01 CDT 2002


I figured out my error, I had to comment out the "AddModule mod_php4.c" to
get the SAPI to work. And why does win2k get confused with vhosts?
My vhosts are configured as follows:
<VirtualHost *>
     ServerAdmin webmaster at Site1
     DocumentRoot C:/Sites/Site1
     ServerName Site1
     ErrorLog logs/Site1-error_log
     CustomLog logs/Site1-access_log common
</VirtualHost>

<VirtualHost *>
     ServerAdmin webmaster at Site2
     DocumentRoot C:/Sites/Site2
     ServerName Site2
     ErrorLog logs/Site2-error_log
     CustomLog logs/Site2-access_log common
</VirtualHost>

I've added this to my Hosts file:

127.0.0.1 Site1
127.0.0.1 Site2

But win2k confuses Site1 with localhost and won't even allow for Site2, it
only attempts to connect to the internet.
What have I left out is bugging me to no end.
Any ideas?

Peter Kaulback

In the hour of 05:53 PM 5/18/2002 +0200, Gijs van Tulder spoke this:

>Hi Peter,
>
>The SAPI route is faster, so you should use that. But, there's one possible
>problem. The official PHP-site states the Apache 2 support by PHP as
>'experimental'. So, for a stable server you should choose one of the
>following options:
>- install the PHP module with Apache 1.x
>- use the CGI-version with Apache 2.0
>
>Gijs
>
>-----Original Message-----
>From: thelist-admin at lists.evolt.org
>[mailto:thelist-admin at lists.evolt.org]On Behalf Of Peter Kaulback
>Sent: zaterdag 18 mei 2002 16:25
>To: thelist at lists.evolt.org
>Subject: [thelist] PHP 4.2 on Apache 2 on win2k
>
>
>Is it better to install PHP 4 as a CGI on win2k or to use the SAPI route
>when installed with Apache 2.0.36?
>I'm still trying to get used to PHP.
>
>Peter Kaulback
>
>
>--
>For unsubscribe and other options, including
>the Tip Harvester and archive of thelist go to:
>http://lists.evolt.org Workers of the Web, evolt !
>
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.362 / Virus Database: 199 - Release Date: 5/7/2002




More information about the thelist mailing list