Setup non root user and add to wheel
adduser exampleuser usermod -a -G wheel exampleuser
Disable root login
vi /etc/ssh/sshd_config PermitRootLogin no service sshd restart
Setup Apache
yum install httpd systemctl start httpd.service systemctl enable httpd.service firewall-cmd --permanent --add-port=80/tcp firewall-cmd --permanent --add-port=443/tcp firewall-cmd --reload
Install MySQL
Get current redhat file info here: https://dev.mysql.com/downloads/repo/yum/ Then wget https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm check / compare file against checksum on download page above md5sum mysql80-community-release-el7-1.noarch.rpm rpm -ivh mysql80-community-release-el7-1.noarch.rpm yum install mysql-server systemctl start mysqld systemctl status mysqld During the installation process, a temporary password is generated for the MySQL root user. Locate it in the mysqld.log with this command: grep 'temporary password' /var/log/mysqld.log mysql_secure_installation mysqladmin -u root -p version
Install PHP
yum install php php-mysql systemctl restart httpd.service yum search php-