Update Installing phpMyAdmin
parent
1f300058d7
commit
1158c9f06b
1 changed files with 8 additions and 9 deletions
|
@ -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:
|
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
|
systemctl stop nginx
|
||||||
```
|
```
|
||||||
|
|
||||||
Second of all, we are going to obtain the certbot certificate.
|
Second of all, we are going to obtain the certbot certificate.
|
||||||
|
|
||||||
```
|
```shell
|
||||||
certbot certonly
|
certbot certonly
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ Next, it will ask you for your domain.
|
||||||
|
|
||||||
### Ubuntu and Debian :
|
### Ubuntu and Debian :
|
||||||
|
|
||||||
```
|
```shell
|
||||||
mkdir /var/www/phpmyadmin
|
mkdir /var/www/phpmyadmin
|
||||||
|
|
||||||
cd /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 :
|
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
|
nano /etc/nginx/sites-available/phpmyadmin.conf
|
||||||
```
|
```
|
||||||
|
|
||||||
Then copy and paste the code below, but please replace the <domain> sections with your domain | ```EG. phpmyadmin.lunashosting.online```
|
Then copy and paste the code below, but please replace the <domain> sections with your domain e.g. `phpmyadmin.example.org`
|
||||||
|
|
||||||
```
|
```nginx
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name <domain>;
|
server_name <domain>;
|
||||||
|
@ -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!
|
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
|
ln -s /etc/nginx/sites-available/phpmyadmin.conf /etc/nginx/sites-enabled/phpmyadmin.conf
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```shellsystemctl restart nginx
|
||||||
systemctl 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`!
|
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`!
|
Loading…
Reference in a new issue