add phpMyAdmin config file
This commit is contained in:
parent
5eefd2ad93
commit
a7e8387f77
14
html/phpMyAdmin/config.inc.php
Normal file
14
html/phpMyAdmin/config.inc.php
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
$cfg['blowfish_secret'] = 'changeme';
|
||||
$i = 0;
|
||||
$i++;
|
||||
$cfg['Servers'][$i]['auth_type'] = 'cookie';
|
||||
$cfg['Servers'][$i]['hide_db'] = 'information_schema|performance_schema|mysql|wsrep';
|
||||
$cfg['Servers'][$i]['host'] = '127.0.0.1';
|
||||
$cfg['Servers'][$i]['compress'] = false;
|
||||
$cfg['Servers'][$i]['AllowNoPassword'] = false;
|
||||
$cfg['UploadDir'] = '';
|
||||
$cfg['SaveDir'] = '';
|
||||
$cfg['TempDir'] = '/tmp';
|
||||
$cfg['PmaNoRelation_DisableWarning'] = true;
|
18
install.sh
18
install.sh
|
@ -202,22 +202,10 @@ rm -r phpMyAdmin-5.1.1-all-languages/setup/
|
|||
if [ -d "phpMyAdmin-5.1.1-all-languages/test/" ]; then
|
||||
rm -r phpMyAdmin-5.1.1-all-languages/test/
|
||||
fi
|
||||
blowfish_secret=`pwgen 32 -1`
|
||||
echo '<?php' > 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
|
||||
|
|
Loading…
Reference in New Issue
Block a user