0

I need to install Java on the same server on which PHP is already installed and hosting website. I need Java on the same server as I need to validate my XML file for Schematron business rule validation, will it create any problem if I install Java on same server?

3 Answers 3

2

You have to allocate different listening ports, By default for all servers listening port is set to 80. You will need to assign other listening port to one of the server either php server or java server.

4
  • A common solution is to have the front web server (which presumably runs PHP as well) proxy through to the Java server. Commented Jul 23, 2012 at 5:30
  • Installing Java and running a Java-based web server are two very different things. Commented Jul 23, 2012 at 5:33
  • @KeithRandall Agree but my point was about web servers. There may be conflict if both servers are trying to listen same port. Commented Jul 23, 2012 at 5:39
  • @Thilo 's solution would be better. You should post in brief. Commented Jul 23, 2012 at 5:40
0

No problem at all. PHP and Java will not interfere as long as you have disk space to hold them both.

0

yes you can do that. We had done this for one of our products. You need to be careful about the HTTP(s) ports though if you are going to use java in the web context. If you just have a php website and that's going to use/invoke your java process, then no problems at all.

You must log in to answer this question.