UniServer, Part 3
Let’s say you want to have more than one test server on your computer. Since our servers (Apache and MySQL) use IP ports for communications, they get cranky when we try to have two instances use the same ports. If we only have certain ports available, what should we do? The obvious solution is to choose other ports and set the new servers to use them. This process has been greatly simplified in UniServer, and is one of its primary features.
Remember the UniTray icon? If you click on it and select “Advanced,” the submenu will show “Move Servers multi-server operation” as a choice. If you select this, it starts a script that leads you through the changes necessary to change all the affected ports to the next sequential set. It also increments the number on the icon, so you can tell whether this server set has been changed and to what number it is set. By repeating this process, you can change the ports to any of the 9 different settings. Please note that this does NOT change any settings associated with applications (other than those that have been preset as UniServer apps; these have some code added to the configuration files to look for the change).
So lets say you want three different instances. or even want to mix WAMPS. For example, you might want a XAMPP at port 80 and two UniServer stacks at ports 82 and 83. Here’s how:
Install the first UniServer in Uniserver. Rename the UniServer directory to UniServer3 and then run the Start.exe. This will adjust the stack to use the new name. Change the configuration using the “Move Servers multi-server operation.” Then do it again, so that the Apache port is 83 and the UniTray icon shows 3.
Now install the second UniServer in Uniserver. You can rename it as above to UniServer2, or just leave it. Run Start.exe for that instance and change the configuration as above, but only once, so that Apache is at port 82 and the UniTray icon shows 2.
Finally you’re ready to install XAMPP, which will default Apache to port 80.
Now you have three different WAMPs in the following directories: XAMPP in C:\xampp, and Uniform Server in UniServer2 and UniServer3. All three can be running at the same time. From your browser, http://localhost goes to XAMPP, http://localhost:82 goes to UniServer and http://localhost:83 goes to UniServer3.