How change the tomcat port in XAMPP

29,297

Solution 1

most of the time the tomact port 8080 is blocked by oracle 10g's "TNSLSNR.EXE". Before start tomcat from XAMPP control panel, start the task manager, click on to the process tab of the task manager window.Find the "TNSLSNR.EXE" process. select "TNSLSNR.EXE", click on the end process button. If you don't show the "TNSLSNR.EXE" in the process list, then click show processes from all user button to find the "TNSLSNR.EXE". "TNSLSNR.EXE" process will be available in the processes list. Select "TNSLSNT.EXE", click on the end process button. After stopping the "TNSLSNR.EXE" start the tomcat from XAMPP control panel. Click on to the admin button of tomcat in xampp control panal. The admin page will run on browser.

Solution 2

I have tried this with Xampp for Windows v7.2.1 and XAMPP Control Panel v3.2.2
Go to the xampp installation directory. \xampp
You will find a file xampp-control.ini . Open it and go to the Service Ports section.
I have modified all the three tomcat ports as shown below. Earlier it was 8080, 8009 and 8005.

Xampp service ports

For the safe side also change the ports in the file server.xml under \xampp\tomcat\conf
change all the ports as required Tomcat ports

Solution 3

if you are using Xwamp 7.1.4 + then no need to do so many things for port changes.

Just go to XWamp panel > Config > click on "Tomcat tab" and changes the port no. Restart your xWamp.

it will work.

Regard, Pappu Mehta.

Solution 4

This is link to modify config

http://musingsofanitjedi.blogspot.in/2009/09/modifying-tomcat-admin-port-in-xampp.html

after that you have to start and stop service

Share:
29,297
Admin
Author by

Admin

Updated on July 09, 2022

Comments

  • Admin
    Admin almost 2 years

    I have a problem. I use XAMPP 1.7.7 under Windows XP. I've changed the port in server.xml because I have this port with other application. I start tomcat server from catabalina.bat perfect in the new port. I change the port for tomcat in XAMPP.INI with the new port. Restart the computer. And I try again to start tomcat server from XAMPP Control Panel but I see log as "Busy port - Tomcat 8080". The tomcat server start but I want to avoid this message in the XAMPP Control Panel. So when you press de button for going to the tomcat by browser the url is with the old port.

    Where can change the port? What Can I do?