Categories

Saturday, April 20, 2024
#919814419350 therichposts@gmail.com
AWS

How to install apache, mysql, php on ubuntu?

How to install apache, mysql, php on ubuntu?

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

therichpost
the authortherichpost
Hello to all. Welcome to therichpost.com. Myself Ajay Malhotra and I am freelance full stack developer. I love coding. I know WordPress, Core php, Angularjs, Angular 14, Angular 15, Angular 16, Angular 17, Bootstrap 5, Nodejs, Laravel, Codeigniter, Shopify, Squarespace, jQuery, Google Map Api, Vuejs, Reactjs, Big commerce etc.

Leave a Reply

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