0

I have installed Apache tomcat 4.0 and I have run server side code in java using port 8080 (or 80 ).

I want to program in php and run on Apache but php also uses port 80.

Will it give me any problems if I use them at the same time or separately?

I have not installed xampp .

EDIT:I have windows as OS and created an Ubuntu virtual machine using Vmware.

Alive to die - Anant
  • 70,531
  • 10
  • 51
  • 98
Aakriti Gupta
  • 802
  • 1
  • 7
  • 16
  • go ahead try it , come up with an actual problem plus port addresses can be changed right – Pavneet_Singh Oct 02 '16 at 18:10
  • you can change port for Apache. If any other services using port 80 then defiantly it raise issue. Either stop all other services and then run Apache, or change the port permanently. Check here:- http://stackoverflow.com/a/21914920/4248328 – Alive to die - Anant Oct 02 '16 at 18:10
  • can i install apache in ubuntu using vmware and then use it for php? will it resolve the issue?@Anant – Aakriti Gupta Oct 02 '16 at 18:16
  • you can install LAMP in ubuntu and for that you have to check some other liknks. The above is for xampp . check for ubuntu:- http://askubuntu.com/questions/342132/how-to-give-specific-port-to-apache-in-ubuntu-12-04-and-port-for-mysql – Alive to die - Anant Oct 02 '16 at 18:20
  • @AakritiGupta welcome :):) – Alive to die - Anant Oct 02 '16 at 18:22

1 Answers1

1

I have not used PHP in some time, but I don't remember it ever using a port. The server software it runs on (in your case APACHE - either using the PHP CGI connector or the Apache shared library). You need to chnge your port in APACHE - read the Apache docs on the subject here: http://httpd.apache.org/docs/2.2/mod/mpm_common.html#listen

RED MONKEY
  • 3,025
  • 2
  • 21
  • 23