These are the steps we follow to setup new CentOS/CloudLinux/Fedora/RHEL server.
Update Installed Software
yum update
Install Basic Software
yum install -y nmap lynx wget curl telnet screen jwhois unzip bzip2
Install Build Tools
These are needed for installing/compiling software’s from source.
yum install -y ncurses-devel automake autoconf gcc gmake patch make yum install -y libcpp libgcc libstdc++ gcc4 gcc4-c++ gcc4-gfortran yum install -y dos2unix libtool gcc-c++ gcc-c++ compat-gcc-32 compat-gcc-32-c++
Install Apache/PHP
yum install httpd php php-mysql php-gd
Install MySQL
For installing MySQL, see post