Can I install xampp and asterisk on same box

I am just the beginner of the asterisk, and like the freepbx interface a lot.
One thing I am really get confused is that whether the installation of the asterisk will take over the apache’s port, or some kind of restriction to the apache.
If not, can I install the XAMPP on the same box, or I have to install the php seperately, or any good suggetion of how to run the php on asterisk box.

Wanting to install xampp implies that you are planning to use your asterisk server for some additional applications. Using the server for anything except for Asterisk and its affiliated applications is not recommended.