Setup Multiple Servers on 1 computer

For a lot of you who have only one computer but you want to install multiple servers such as Apache 2.0, Apache 2.2, Xampp, NuSphere, and GlassFish for Tomcat users. If you follow my steps below here, you wouldn’t go wrong and you’ll have multiple servers to write your applications in multiple languages.

Step 1: Install all servers in your C:\ drive

Step 2: Define each server with each different port. For example: Apache 2.0, you configure Port 80. Apache 2.2, you configure Port 81 …

For Nusphere development tool, go to Settings, under “Run & Debug” section – SVR web server, select Server Port as 8082 for example.

Step 3: Stop and Restart all of the installed servers, including Tomcat server if you install one. Now you can write PHP MySQL and JSP + JServlet + MySQL at the same time without switching server on and off.

Remember when you want to run the application, use the Port to distinguish different servers.

Example: When typing in the URL http://localhost:80/ you will run all PHP MySQL pages. When typing in the URL http:/localhost:81/ you will run all JSP + JServlet + MySQL pages.