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.
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