Setup non root user and add to wheel
1 2 | adduser exampleuser usermod -a -G wheel exampleuser |
Disable root login
1 2 3 4 5 | vi /etc/ssh/sshd_config PermitRootLogin no service sshd restart |
Setup Apache
1 2 3 4 5 6 7 8 9 | 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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 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
1 2 3 4 5 | yum install php php-mysql systemctl restart httpd.service yum search php- |