Professional Documents
Culture Documents
2
Step 1: Clean-up yum: ........................................................................................................ 2
Step 2: Update existing packages: ...................................................................................... 2
Step 3: Add Yum CentOS 7 Repositories ............................................................................ 2
Step 4: Install PHP 7 from webtatic ..................................................................................... 2
Install Basis PHP modules............................................................................................... 2
Step 5 Install Apache 2.4 .................................................................................................... 2
Start httpd service and enable to start on boot. ................................................................... 2
Step 6 Install MySQL 5.7 .................................................................................................... 3
Apply security on MySQL and also set root user password. ............................................ 3
Generate temporary password for mysql ......................................................................... 3
Step 7 Install and open firewall port .................................................................................... 3
Install Firewall.................................................................................................................. 3
Start firewall service ........................................................................................................ 3
Step 8 Check Installed Version ........................................................................................... 3
Devscreencast, Inc
Install PHP, MySQL and Apache on EC2 Centos
Firstly, we need to clean and update Yum. Yum is a command line tool for package
management in a Linux system. It is used to easily install, update, remove or search
software packages on a system.
Devscreencast, Inc
Step 6 Install MySQL 5.7
# sudo yum install mysql-server
Install Firewall
#sudo yum install firewalld
Devscreencast, Inc