How to host php mysql phpmyadmin website on cloud
$ apt update
$ apt dist-upgrade
$ sudo apt install phpmyadmin php-mbstring php-gettext
OR
$ sudo apt install php-mbstring
$ sudo apt install php-gettext
$ sudo apt install phpmyadmin
$ sudo phpenmod mbstring
$ sudo systemctl restart apache2
$ sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
$ sudo a2enconf phpmyadmin.conf
$ systemctl reload apache2
$ sudo mysql
$ GRANT ALL ON *.* TO 'admin'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
$ exit
How can point a domain to Apache Ubuntu Server?
At first add the A record from the domain registerer like the below image by the IP Address.
At first add the A record from the domain registerer like the below image by the IP Address.
$ cd /etc/apache2/sites-available/
$ ls
$ vim 000-default.conf
$ ServerName domainname.com
$ ServerAlias www.domainname.com
esc :wq
$ systemctl restart apache2