Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install multiple Apache Instances on a single Windows 2003 machine

Tags:

apache

On my server I have installed a web application that comes with a bundle of Apache Services. Hence all the apache related dlls are located in the application folder's sub directory (e.g., C:\Program Files\MyWebApp\apache2). It seems that when the windows 2003 server is started all the request will be served by that apache services.

Now I want to install another instances of Apache and MYSQL, PhP to the default Program Folders ( e.g., C:\Program Files\Apache Service Foundation etc), however upon installation I can't configure it-- there is no way to get the second Apache Service up and running.

When I am installing the second Apache, I set the network domain name to "pm2", and choose the Port 8080 option. However, when apache is finished in installation, when I type in http://pm2:8080, I got a page cannot be displayed error.

Is there anything I miss?

like image 822
Graviton Avatar asked Dec 01 '22 08:12

Graviton


1 Answers

Does the original site still work ok? If it does, there is a chance that the second installation of apache is trying to install itself as a service with the same name as the first instance and therefore, failing.

To install apache as a second service use:

httpd -k install -n "Apache Instance 2" -f "C:\Program Files\Apache Service Foundation\path\to\your\conf file.conf"
like image 149
Uresu Avatar answered Dec 04 '22 03:12

Uresu