AWS

How to install apache, mysql, php on ubuntu?

How to install apache, mysql, php on ubuntu?
Views

Hello to all, welcome to therichpost.com. In this post, I will tell you, How to install apache, mysql, php on ubuntu?

Here are the steps to install apache, mysql, php on ubuntu:

//install apache
sudo apt-get install apache2

sudo service apache2 restart

sudo systemctl status apache2


// install php
sudo add-apt-repository ppa:ondrej/php -- set php dependencies

sudo apt-get update

sudo apt-get install php7.2

//php libraries
sudo apt-get install php7.2-curl php7.2-gd php7.2-json php7.2-mbstring php7.2-intl php7.2-mysql php7.2-xml php7.2-zip

sudo service apache2 restart

//install phpyadmin
sudo apt-get install -y phpmyadmin

//install mysql
sudo apt-get update
sudo apt-get install mysql-server
sudo mysql_secure_installation utility
sudo ufw enable
sudo ufw allow mysql
sudo systemctl start mysql
sudo systemctl enable mysql
sudo systemctl restart mysql

//go to mysqlshell...
/usr/bin/mysql -u root -p



 

If you have any query then please let me know.

Jassa

Thank you

Ajay Malhotra
the authorAjay Malhotra
Hello to all. Welcome to therichpost.com. Myself Ajay Malhotra and I am full stack developer. I love coding. I know Wordpress, Core php, Angularjs, Angular 2, Angular 6, Angular 7, laravel, Codeigniter, Shopify, Squarespace, Jquery, Google Map Api, Vuejs, Reactjs, Bigcommerce etc.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Positive SSL