Change Default Port 80 to 81
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 have trouble in executing steps 1 to 4, try below steps:
Step 1: netstat -n -o -a | findstr 0.0:443
Get the processId from above result. in my case it is 10136
Step 2: taskkill /F /PID 10136
Kill the process
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: