Installing multiple instances of Apache on a single computer running Windows 2003

On my server, I installed the web application that comes with the Apache Services package. Therefore, all apache dll related files are located in a subdirectory of the application folder (for example, C: \ Program Files \ MyWebApp \ apache2). It seems that when the Windows 2003 server is running, the entire request will be served by these apache services.

Now I want to install another instance of Apache and MYSQL, PhP for the default program folders (for example, C: \ Program Files \ Apache Service Foundation, etc.), however after installation I can not configure it - there is no way to start and run second apache service.

When I install the second Apache, I set the network domain name to "pm2" and select the Port 8080 option. However, when apache finishes during installation, when I type http: // pm2: 8080 , I got a page that cannot be displayed error.

Is there something I missed?

+4
source share
3 answers

Does the source site work fine? If this is the case, it is likely that the second apache installation is trying to install itself as a service with the same name as the first instance, and therefore fail.

To set apache as the second use of the service:

httpd -k install -n "Apache Instance 2" -f "C:\Program Files\Apache Service Foundation\path\to\your\conf file.conf" 
+13
source

I know this is an old question, but in general you wonโ€™t need to start the second Apache process , much less install a second copy of the program. Browse the Apache manuals, in particular, Listen and VirtualHost .

If there are version conflicts for some requirements on the server side, this may not be relevant to your case, it was not clear from your message.

+3
source

A few thoughts:

  • Have you added a record to your DNS server or hosts file to make sure PM2 is coming to the correct server?
  • Try starting the second instance of Apache from the command line, so you get error messages displayed on the console so that you can see if there are any errors that prevent it from starting correctly.
+2
source

All Articles