Install PHP MySQL on ubuntu ec2 instance. Here we will show you step-by-step on how to install PHP MySQL on ubuntu 18.04 AWS EC2.
First of all, you need to connect your aws ec2 instance from ssh. If you are new to connect aws ec2 instance with windows, ubuntu and mac system. So you can read this tutoiral “How to Connect to ec2 Instance From Putty and SSH Terminal” to connect your ec2 instance from ssh.
In this step, open your ssh terminal and type the following command to tnstall MySql Server:
sudo apt-get install mysql-server
Then, secure MySql server by using the following command. So, you will need to set the root password of the database and secure it using the following command :
sudo mysql_secure_installation
#aws #mysql #php #ubuntu #aws ec2 #linux