diff --git a/guides/adminer-setup.html b/guides/adminer-setup.html index 2916b7d..a749f4e 100644 --- a/guides/adminer-setup.html +++ b/guides/adminer-setup.html @@ -50,10 +50,10 @@ chmod 755 /var/www/html/adminer.php

Access it

-

Head to your /adminer.php, and you should load into the adminer login. Using your mysql/mariaDB credentials, you can then login, and use the GUI to manage your database(s)

+

Head to your <WEBSITE/IP>/adminer.php, and you should load into the adminer login. Using your mysql/mariaDB credentials, you can then login, and use the GUI to manage your database(s)

Make it a directory, not a file

-

Instead of accessing /adminer.php?, we can make it look like /adminer/

+

Instead of accessing /adminer.php?<ARGUMENTS>, we can make it look like /adminer/<ARGUMENTS>

location /adminer/ {
 	root /var/www/html ;
 	try_files $uri $uri/ /adminer/index.php/$is_args$args ;
@@ -62,16 +62,16 @@ chmod 755 /var/www/html/adminer.php

Password Protect

An additional level of security, just in case. Using Htaccess, any file, or directory can be password protected

sudo apt install apache2-utils
-htpasswd -c /home//.htpasswd admin
+htpasswd -c /home/<USER>/.htpasswd admin

Add to location

Add the location of the auth file to the adminer location block

auth_basic "Adminer" ;
-auth_basic_user_file /home//.htpasswd ;
+auth_basic_user_file /home/<USER/>.htpasswd ;

They block should look like below

location /adminer/ {
 	auth_basic "Adminer" ;
-	auth_basic_user_file /home//.htpasswd ;
+	auth_basic_user_file /home/<USER>/.htpasswd ;
 	root /var/www/html ;
 	try_files $uri $uri/ /adminer/index.php/$is_args$args ;
 }
diff --git a/guides/guide-to-server-hosting.html b/guides/guide-to-server-hosting.html index 723b06e..1f779ed 100644 --- a/guides/guide-to-server-hosting.html +++ b/guides/guide-to-server-hosting.html @@ -70,7 +70,7 @@