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 Answers3

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.

Rupesh Patel
  • 121
  • 4
  • A common solution is to have the front web server (which presumably runs PHP as well) proxy through to the Java server. – Thilo Jul 23 '12 at 05:30
  • Installing Java and running a Java-based web server are two very different things. –  Jul 23 '12 at 05:33
  • @KeithRandall Agree but my point was about web servers. There may be conflict if both servers are trying to listen same port. –  Jul 23 '12 at 05:39
  • @Thilo 's solution would be better. You should post in brief. –  Jul 23 '12 at 05: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.

arya
  • 1