Install Apache2 Mysql-server and PhpMyadmin on Ubuntu 18.04

Just follow the steps no explanation required if you are here you really know what is it.



Open the terminal and paste the following commands.


sudo apt-get install apache2 mysql-server -y

sudo apt-get install software-properties-common -y

sudo add-apt-repository ppa:ondrej/php

sudo apt-get install phpmyadmin php-mbstring php-gettext -y

sudo phpenmod mbstring

sudo systemctl restart apache2


sudo mysql

sudo nano /etc/apache2/mods-enabled/dir.conf

sudo nano /etc/apache2/sites-enabled/000-default.conf

sudo systemctl restart apache2.service

sudo apt-get install php php-cgi libapache2-mod-php php-common php-pear php-mbstring

sudo a2enconf php7.3-cgi

sudo systemctl reload apache2.service

sudo apt-get install phpmyadmin php-gettext

Comments