I think you probably have heard of/used xampp
and you are mixing different terminology.
xampp is a ready-to-go/all-inclusive installation of the applications cited (apache, php, mysql and more) than you untar somewhere and start it, this is different from an installation of the applications in the local operating system folders made through the package manager of the operating system.
I personally don't ever use xampp because upgrading its internal components when new bugs are discovered is a PITA (because of it being made to be a self-contained solution), while it's nearly always a smooth ride if I can do it with a package manager ("slackpkg upgrade apache", for example).
as dugan already noted, mrgoblin's 3-part article
will show you how to configure the aforementioned services.