First step is to install all the required libraries. So you need to install gcc and g++,
Installing gcc : yum install gcc
Installing xmms : yum install xmms
Installing g++ : yum install gcc-c++
In my case doing all those did not allow me to build the Apache, it was giving me an error saying “asm/page.h” does not found. Then I realize some of the OS related header files are missing in the OS image. To solve that I had to copy “/usr/include/asm” from a normal Fedora OS. After I did all those, boom Apache worked fine.
Just follow the same procedure if you want to setup your own dedicated servers.