open terminal

edit yum.conf

# nano /etc/yum.conf

add this code

http_caching=packages
# yum install php
# yum install mysql-server