Install CentOS 7 web server

#Install ifconfig:
sudo yum install net-tools
#Other pakages:
sudo yum install nano wget htop mc net-tools curl
yum install yum-priorities
#install apache, php
sudo yum install httpd
sudo yum install mod_ssl mod_security mod_evasive
#Start and Autostart:
sudo systemctl start httpd.service
sudo systemctl enable httpd.service
#Install Mysql:
sudo yum install mariadb-server mariadb
sudo systemctl start mariadb
sudo systemctl enable mariadb
#Secure mysql:
sudo mysql_secure_installation
sudo yum install iptables-services iptables
#Add http port: nano /etc/sysconfig/iptables
-A INPUT -p tcp -m state –state NEW -m tcp –dport 80 -j ACCEPT
#save and restart:
sudo service iptables restart
#Install php
sudo yum install php php-mysql php-gd php-xcache php-fpm
sudo yum install php-gd php-ldap php-imap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap
sudo nano /var/www/html/info.php
#Paste code:

< ?php phpinfo(); ? >

#You visit will be:
#install phpmyadmin:
sudo yum install phpMyAdmin
#change config:
nano /etc/httpd/conf.d/phpMyAdmin.conf

<Directory /usr/share/phpMyAdmin/>
        Options none
        AllowOverride Limit
        Require all granted

nano /etc/phpMyAdmin/
$cfg[‘Servers’][$i][‘auth_type’] = ‘http’; // Authentication method (config, http or cookie based)?
yum -y install postfix
systemctl stop sendmail.service
systemctl disable sendmail.service
systemctl enable postfix.service
systemctl restart postfix.service