Forum Moderators: mack

Message Too Old, No Replies

virtual server

apache and IIS webservers

         

MaZaGAngeE

5:59 pm on Jan 13, 2007 (gmt 0)



mail server supported with IIS webserver software also, i need to install apache webserver to support PHP website on the same sever hardware.
how can i install IIS and Apache on the same server?
plz refer me to a detailed steps to make it real

mack

6:27 pm on Jan 20, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



You can but you would need to disable one or the other in order for one to work. Web servers use port 80 so it is not possible for two servers to operate on the same port on the same system.

Another option is to set up one of the servers to use another port.

Mack.

iamzippy

9:42 am on Jan 29, 2007 (gmt 0)

10+ Year Member



I have IIS/PHP5 and Apache 2.2/PHP5 running together on a W2K virtual server on top of XP-SP2.

IIS defaults to port 80, Apache listens on 8080. I use ISAPI, not CGI.

If you give each its own php.ini file, in separate locations, they can otherwise share one PHP folder.

Get the current (as of 2007-01-29) Win32 Binary (MSI Installer): apache_2.2.4-win32-x86-no_ssl.msi
from here:

[httpd.apache.org...]

Online docs are here:

[httpd.apache.org...]

Get the current (as of 2007-01-29) PHP 5.2.0 Windows package here:

[php.net...]

In Apache's httpd.conf, make sure you LoadModule php5apache2_2.dll (not php5apache2.dll).
That's the most common reason for failure I've seen.

As always, RTFM.

encyclo

2:25 pm on Jan 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You don't need Apache to run PHP - you can use the standard PHP installer which auto-configures and runs under IIS.