Adminer를 설정합니다.

Adminer는 PhpMysqladmin보다 몇 배나 빠른 간단한 독립 실행형 도구

Adminer - Database management in a single PHP file

Production LAMP system: Lighttpd + PHP + MySQL - Alpine Linux

https://github.com/vrana/adminer/releases/

mkdir -p /var/www/webapps/adminer
wget <https://github.com/vrana/adminer/releases/download/v4.7.6/adminer-4.7.6.php> -O /var/www/webapps/adminer/adminer-4.7.6.php
ln -s adminer-4.7.6.php /var/www/webapps/adminer/index.php
cat > /etc/lighttpd/mod_adminer.conf << EOF
# NOTE: this requires mod_alias
alias.url += (
     "/adminer/"	    =>	    "/var/www/webapps/adminer/"
)
$HTTP["url"] =~ "^/adminer/" {
    # disable directory listings
    dir-listing.activate = "disable"
}
EOF

sed -i -r 's#\\#.*mod_alias.*,.*#    "mod_alias",#g' /etc/lighttpd/lighttpd.conf
sed -i -r 's#.*include "mod_cgi.conf".*#   include "mod_cgi.conf"#g' /etc/lighttpd/lighttpd.conf
checkssl="";checkssl=$(grep 'include "mod_adminer.conf' /etc/lighttpd/lighttpd.conf);[[ "$checkssl" != "" ]] && echo listo || sed -i -r 's#.*include "mod_cgi.conf".*#include "mod_cgi.conf"\\ninclude "mod_adminer.conf"#g' /etc/lighttpd/lighttpd.conf
rc-service lighttpd restart