How to run JSP and php on my machine

I am using Xaamp server for php development. Now I have installed Apache and Eclipse to execute jsp. Now, if I try to execute the jsp page, the Apache server gives an error that several of the 8080.8086etc ports that are needed are busy even if I turn off the xaamp server. Is it possible to run both php and jsp pages on my machine?

+4
source share
3 answers

" Apache " is the name of a large software company that offers many products. I assume that you really mean his Tomcat product. "

Given that you are using XAMPP, you are most likely using Windows. Given that you are a PHP guy using Windows, you most likely downloaded the Tomcat Windows installer as a .exe instead of the Tomcat library as a .zip file. A Windows installer for Windows production environments (and therefore not for a development environment) will install Tomcat as a Windows service that starts automatically every time Windows starts (and therefore already occupies these ports).

You do not want to use the Tomcat Windows service if you simply develop and want to manage Tomcat from within Eclipse.

Stop the Tomcat service in the Windows Services Manager (start> run> services.msc) and / or remove the Tomcat Windows service. You just need a Tomcat library like .zip . All you have to do is extract it to the right place. Once you are stopped / deleted, you can start it in Eclipse without any problems.

+5
source

You need to configure each server on a different port. You can configure the XAMPP server to work on port 80, for example, then Tomcat can work on port 8080. Then it would be easy to run several servers. A quick google search for “How to change the XAMPP port number” will display several sites that explain this.

+1
source

You can change the port that XAMPP uses. For this:

  • Stop the XAMPP server if it is already running.
  • Open the [XAMPP installation folder] /apache/conf/httpd.conf file.
  • Now find the line Listen 80 (Im assuming your XAMPP is using port 80. Otherwise, just find the line “Listen”). This is the port number that XAMPP uses. Change this 80 to any other number you prefer.
  • Then find the line "ServerName" and update the port number.
  • Now save and restart the XAMPP server and you're done.

http://veerasundar.com/blog/2009/07/how-to-change-xampp-server-port/

+1
source

All Articles