![]() Then press Tab key that takes us to the Ok button. Use space bar to select apache2 web server. When the first option is appear, you need to select apache2. Then the selective option available for you on the prompt look like folloiwng: Open your ssh terminal and type the following command to install PHPMyAdmin on ubuntu amazon ec2 web server: sudo apt install phpmyadmin Step 6 – Install, Configure and Access phpMyAdmin 6.1 – Installing phpmyadmin on amazon ec2 ubuntu Now, you need to configure dir.conf file by using the following sudo nano command: sudo nano /etc/apache2/mods-enabled/dir.confĭirectoryIndex index.php index.html index.cgi index.xhtml index.htm ![]() So open your ssh terminal and type the following command: sudo apt-get install php libapache2-mod-php php-mysql php-curl php-gd php-json php-zip php-mbstring 5.2 – Edit dir.conf FileĪfter successfully installed PHP on ubuntu amazon ec2 instance. Now, install PHP with it’s common extensions. Now, Type exit on ssh terminal to get out of MySql: exit Step 5 – Install PHP 7.3 5.1 – Install PHP and Common Extensions Password is the same that was set in the previous step. The above command will ask for the password. After the password has been set you can check the whether MySQL is working correctly by logging into the database with the command :.Remove test database and access to it? Type Yes.In the next screen MySql will ask whether to remove anonymous users.In the next type the root password of your choice.You will be presented with a screen where MySQL asks whether you would like to activate the VALIDATE PASSWORD PLUGIN.Then the questions given below in the prompt will appear: So, you will need to set the root password of the database and secure it using the following command : sudo mysql_secure_installation Then, secure MySql server by using the following command. ![]() Now, open your ssh terminal and type the following command to install MySql Server: sudo apt-get install mysql-server 4.2 – Securing MySQL server in Apache aws ec2 And, it will be looks like the Apache 2 page in the following picture: install apache 2 web server on amazon ec2 Step 4 – Install MySQL 4.1 – Installing MySQL server Step 3 – Install Apache 2 on ubuntu 18.04 3.1 – Update Ubuntu System Repositories sudo apt update 3.2 – Update Ubuntu System Repositories sudo apt install apache2 3.3 – List the UFW application profiles sudo apt install apache2 3.4 – sudo ufw allow ‘Apache Full’ sudo ufw allow 'Apache Full' 3.5 – Verify that the Apache service is running sudo systemctl status apache2 3.6 – Open Browser and type EC2 intance IPįinally, open your browser and type your AWS ec2 instance IP address. So you can read this tutorial “How to Connect to ec2 Instance From Putty and SSH Terminal” to connect your ec2 instance from ssh. If you are new to connect aws ec2 instance with windows, ubuntu and mac system. In this step, you need to connect your aws ec2 instance from ssh terminal. Step 2 – Connecting your AWS EC2 Instance from SSH Otherwise you need to read this tutorial “ how to launch ec2 instance in aws step by step“ for launch aws ec2 instance. If you have already launch new ec2 instance, so you can move next step.
0 Comments
Leave a Reply. |