I have found since I have been using linux that as long as you have glibc (c libraries) as I understand it, you can compile stuff like apache, php without problems.
The best way I found to install apache was to download the latest tar.gz file from www.apache.org and then compile it, It is pretty straight forward as long as you read the README carefully
After installing that I complied PHP , again after downloading the tar.gz file from www.mysql.com which was also pretty straightforward , just make sure you read the README carefully
Overall the majority of tar.gz stuff I have installed is a simple as typing these commands in the unzipped directory of the thing I want to compile:
./configure
make
make install
Although, I must admit I am struggling with xanim at the moment, but Im still only a beginner
good luck, and dont give up!
Ratso