diff --git a/Installing-phpMyAdmin.md b/Installing-phpMyAdmin.md index 06d1ff4..173a1ee 100644 --- a/Installing-phpMyAdmin.md +++ b/Installing-phpMyAdmin.md @@ -9,13 +9,13 @@ For the sake of this tutorial, we will assume that NGINX and Certbot are already First of all, we are going to make sure NGINX is off while we obtain the certificate. We are going to do this by executing this command: -``` +```shell systemctl stop nginx ``` Second of all, we are going to obtain the certbot certificate. -``` +```shell certbot certonly ``` @@ -27,7 +27,7 @@ Next, it will ask you for your domain. ### Ubuntu and Debian : -``` +```shell mkdir /var/www/phpmyadmin cd /var/www/phpmyadmin @@ -47,13 +47,13 @@ rm -rf phpMyAdmin-5.2.0-all-languages Now that we have installed phpMyAdmin we are going to setup the phpMyAdmin nginx configuration file. Execute these commands : -``` +```shell nano /etc/nginx/sites-available/phpmyadmin.conf ``` -Then copy and paste the code below, but please replace the sections with your domain | ```EG. phpmyadmin.lunashosting.online``` +Then copy and paste the code below, but please replace the sections with your domain e.g. `phpmyadmin.example.org` -``` +```nginx server { listen 80; server_name ; @@ -89,12 +89,11 @@ This configuration will work if you are using PHP 8.1, replace the line `fastcgi Once we have done that we are going to execute the following commands to finish the installation! -``` +```shell ln -s /etc/nginx/sites-available/phpmyadmin.conf /etc/nginx/sites-enabled/phpmyadmin.conf ``` -``` -systemctl restart nginx +```shellsystemctl restart nginx ``` phpMyAdmin is now fully configured. You can use it perfectly at the domain you have set! Please make sure to remember to use `https` instead of `http`! \ No newline at end of file