From a7e8387f7734a6b13bf53a22173798548479d6c9 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Tue, 19 Jul 2022 12:55:42 -0700 Subject: [PATCH] add phpMyAdmin config file --- html/phpMyAdmin/config.inc.php | 14 ++++++++++++++ install.sh | 18 +++--------------- 2 files changed, 17 insertions(+), 15 deletions(-) create mode 100644 html/phpMyAdmin/config.inc.php diff --git a/html/phpMyAdmin/config.inc.php b/html/phpMyAdmin/config.inc.php new file mode 100644 index 0000000..82320ca --- /dev/null +++ b/html/phpMyAdmin/config.inc.php @@ -0,0 +1,14 @@ + phpMyAdmin-5.1.1-all-languages/config.inc.php -echo "declare(strict_types=1);" >> phpMyAdmin-5.1.1-all-languages/config.inc.php -echo "\$cfg['blowfish_secret'] = '$blowfish_secret';" >> phpMyAdmin-5.1.1-all-languages/config.inc.php -echo "\$i = 0;" >> phpMyAdmin-5.1.1-all-languages/config.inc.php -echo "\$i++;" >> phpMyAdmin-5.1.1-all-languages/config.inc.php -echo "\$cfg['Servers'][\$i]['auth_type'] = 'cookie';" >> phpMyAdmin-5.1.1-all-languages/config.inc.php -echo "\$cfg['Servers'][\$i]['hide_db'] = 'information_schema|performance_schema|mysql|wsrep|vmail';" >> phpMyAdmin-5.1.1-all-languages/config.inc.php -echo "\$cfg['Servers'][\$i]['host'] = '127.0.0.1';" >> phpMyAdmin-5.1.1-all-languages/config.inc.php -echo "\$cfg['Servers'][\$i]['compress'] = false;" >> phpMyAdmin-5.1.1-all-languages/config.inc.php -echo "\$cfg['Servers'][\$i]['AllowNoPassword'] = false;" >> phpMyAdmin-5.1.1-all-languages/config.inc.php -echo "\$cfg['UploadDir'] = '';" >> phpMyAdmin-5.1.1-all-languages/config.inc.php -echo "\$cfg['SaveDir'] = '';" >> phpMyAdmin-5.1.1-all-languages/config.inc.php -echo "\$cfg['TempDir'] = '/tmp';" >> phpMyAdmin-5.1.1-all-languages/config.inc.php -echo "\$cfg['PmaNoRelation_DisableWarning'] = true;" >> phpMyAdmin-5.1.1-all-languages/config.inc.php mv phpMyAdmin-5.1.1-all-languages /srv/www/html/phpMyAdmin +cp html/phpMyAdmin/config.inc.php /srv/www/html/phpMyAdmin/config.inc.php +blowfish_secret=`pwgen 32 -1` +sed -i "s|changeme|$blowfish_secret|g" /srv/www/html/phpMyAdmin/config.inc.php find /srv/www/html/phpMyAdmin -type d -exec chmod 755 {} + find /srv/www/html/phpMyAdmin -type f -exec chmod 644 {} + chown -R vhost:vhost /srv/www/html/phpMyAdmin