2022-10-01 16:20:40

This commit is contained in:
henk
2022-10-01 16:20:40 +02:00
parent cf72c2ad26
commit e81defd24c
3 changed files with 68 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
Adminer is een mysql web based tool
Wel eerst even downloaden..
mkdir -p /var/www/html/adminer
Zet in deze dir de adminer.php en cp hem naar index.php
Installeer fpm
apt install php-fpm -y
Kijk naar welke versie is gedownload
Deze straks aanpassen in de adminer.conf
Adminer draait op poort 81, je wilt immers niet dat deze op het internet bekend is
+46
View File
@@ -0,0 +1,46 @@
server {
# Listen on port 81
listen 81;
listen [::]:81;
# Server name being used (exact name, wildcards or regular expression)
server_name eenmaampje;
root /var/www/html/adminer;
# Logging
error_log /var/log/nginx/adminer.access_log;
access_log /var/log/nginx/adminer.error_log;
location / {
index index.php adminer.php;
}
## Images and static content is treated different
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
access_log off;
expires 360d;
}
location ~ /\.ht {
deny all;
}
location ~ /(libraries|setup/frames|setup/libs) {
deny all;
return 404;
}
# Pass the PHP scripts to FastCGI server
location ~ \.php$ {
#fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/html/adminer$fastcgi_script_name;
fastcgi_param HTTPS off;
}
}