Code: 
yum install httpd php mysql-server php-mysql php-gd
Code: 
/etc/init.d/httpd restart
and check the http://ip/
you will see the default page of centos