Thursday, March 22, 2012

Creating multiple services (xampp/iis/apache/tomcat) in one machine

yes you can have multiple installation of any services. the issue will only be the port. So the question is how to differentiated or create different port for each services.

For my case i want to install 2 Xampp into my machine. Basically we can see 2 xampp folder in C: after run installation from xampp.exe.

Just remain the first installation of Xampp as the default. (port 80 and 443).

For second installation of Xampp, change to these file:-
1. C:\xampp_2\apache\conf\httpd.conf - set as below

Listen 0.0.0.0:8080                                                                                                                                         
#Listen [::]:80                                                                                                                                                 
#Listen 80                                                                                                                                                       

ServerName localhost:8080

2.  C:\xampp_2\apache\conf\extra\httpd-ssl.conf

Listen 0.0.0.0:543
#Listen [::]:443
#Listen 443

ServerName localhost:543                                                                                                                              


Now you can restart both your apache and mysql to see the changes. Having multiple services at one time.. :D
http://localhost/
http://localhost:8080/

No comments: