How to install apache2, MySQL, php7.2, PHPMyAdmin, and composer in ubuntu

$ sudo apt-get update
$ sudo apt-get install apache2
$ sudo apt-get install mysql-server$ mysql_secure_installation
$ sudo apt-get install software-properties-common python-software-properties$ sudo add-apt-repository -y ppa:ondrej/php$ sudo apt-get update$ sudo apt-get install php7.2 php7.2-cli php7.2-common$ 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 apt-get install phpmyadmin
$ sudo apt-get install vim$ cd /etc/apache2/$ sudo vim apache2.conf
Include /etc/phpmyadmin/apache.conf
$ sudo service apache2 restart
$ cd$ curl -sS https://getcomposer.org/installer -o composer-setup.php$ sudo php composer-setup.php — install-dir=bin — filename=composer

Subscribe my newsletter to get weekly updates. — https://infinitbility.com/about