Add TomCat to XAMPP installation

5,257

Solution 1

If you are worried about your PHP folder, you can:

  • Stop Apache.
  • Navigate to your XAMPP installation folder.
  • Copy the php folder in place (so you get another folder called e.g. php - Copy.
  • Install Tomcat with the XAMPP installer.
  • Making sure Apache is still stopped, go back to your XAMPP installation folder.
  • Delete your php folder and rename php - Copy back to php.

Solution 2

You can install Tomcat separately from XAMPP. Just remember that Tomcat needs a prior installation of Java.

After the installation of Tomcat, modify its file server.xml (located in folder tomcat_installation_path\conf ) to change the default port number to another number than 8080, because 8080 is used by XAMPP.

Example: Change Connector port="8080" to Connector port="8081".

Now when you start XAMPP you go to localhost:8080, and whenever you run Tomcat you go to localhost:8081.

You may also do it in other way round as well, keeping the default port number of Tomcat and changing XAMPP's port number.

References:

Share:
5,257

Related videos on Youtube

Vrian7
Author by

Vrian7

Updated on September 18, 2022

Comments

  • Vrian7
    Vrian7 over 1 year

    Months ago I've instelled XAMPP to my windows 10 computer with only:

    • Apache
    • MySQL

    but now, I need install TOMCAT.

    Actually I have 3 projects on my htdocs froder, what would be the best way to add TOMCAT to my XAMPP.

    I tried with xampp installer, but it wants to override php instalation, for another new one.

    enter image description here

    What would be the best way to add TOMCAT to my existing XAMPP without having to reinstall or re-download my actual php projects?

  • user960567
    user960567 about 3 years
    Not possible with existing installation of xampp?
  • harrymc
    harrymc about 3 years
    Possible, with side-effects.