mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
disable root login phpmyadmin
This commit is contained in:
parent
dcd0bf2d64
commit
806ebf1db6
1 changed files with 6 additions and 0 deletions
|
@ -1364,6 +1364,9 @@ if [ "$mysql" = 'yes' ] || [ "$mysql8" = 'yes' ]; then
|
||||||
bash /root/phpmyadmin/pma.sh
|
bash /root/phpmyadmin/pma.sh
|
||||||
blowfish=$(gen_pass)
|
blowfish=$(gen_pass)
|
||||||
echo "\$cfg['blowfish_secret'] = '$blowfish';" >> /etc/phpmyadmin/config.inc.php
|
echo "\$cfg['blowfish_secret'] = '$blowfish';" >> /etc/phpmyadmin/config.inc.php
|
||||||
|
|
||||||
|
# disable root login
|
||||||
|
echo "\$cfg['Servers'][\$i]['AllowRoot'] = FALSE;" >> /etc/phpmyadmin/config.inc.php
|
||||||
fi
|
fi
|
||||||
if [ "$release" -gt 10 ]; then
|
if [ "$release" -gt 10 ]; then
|
||||||
echo "=== Configure phpMyAdmin (Debian11 custom part)"
|
echo "=== Configure phpMyAdmin (Debian11 custom part)"
|
||||||
|
@ -1381,6 +1384,9 @@ if [ "$mysql" = 'yes' ] || [ "$mysql8" = 'yes' ]; then
|
||||||
bash /root/phpmyadmin/pma.sh
|
bash /root/phpmyadmin/pma.sh
|
||||||
blowfish=$(gen_pass)
|
blowfish=$(gen_pass)
|
||||||
echo "\$cfg['blowfish_secret'] = '$blowfish';" >> /etc/phpmyadmin/config.inc.php
|
echo "\$cfg['blowfish_secret'] = '$blowfish';" >> /etc/phpmyadmin/config.inc.php
|
||||||
|
|
||||||
|
# disable root login
|
||||||
|
echo "\$cfg['Servers'][\$i]['AllowRoot'] = FALSE;" >> /etc/phpmyadmin/config.inc.php
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue