Tuesday, June 18, 2013

WCS port 80 in use:

Kill process running on port 80


WCS localhost runs on port 80 and 443. In case these ports are used by other application, WCS will not start and it will give error port 80 already in use. In order to resolve this, we need to end the process which uses port 80.

Sometimes it is really difficult to figure out which application is running on port 80. Below are the steps to determine which application is running on that port

Step 1: Go to command prompt

Step 2: Type in netstat –anb

Step 3: Search for application running on port 80:



Step 4: Kill the process which is running on port 80 OR uninstall the application if not required.
After killing the application running on port 80, your WCS will start properly and you will be able to run application.

If you do not want to kill the process or uninstall the application running on port 80, you need to change the port for WCS so that it listens to any port other than 80. Steps to do this.


Step 1: Start application server

Step 2: Login to admin console:  URL will be like https://localhost:9043/ibm/console

Step 3: Navigate to Server Types à Websphere application servers



Step 4: Select server1 (click on server1)



Step 5: Click on ports (Right side menu item) and look for WC_defaulthost and WC_defaulthost_secure.



Change port 80 to 81 (or any other desired port) and 443 to 444 (or any other desired port).
Step 5: Save changes
Step 6: From left side menu Navigate to Environment à Virtual hosts



Step 7: Click on WC_default_host



Click Host Aliases



Change 80 to 81 (or other desired port number); 443 to 444 (or other desired port number)

Note: Keep changed port number same as in step5.

Step 8: Save changes

Step9: Restart server

Step10: Validate your application if it is running on changed port:

Example: for madisons store:

http://localhost:81/webapp/wcs/stores/servlet/Madisons/index.jsp