mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
phpmyadmin install steps for deb11
This commit is contained in:
parent
e1deee2873
commit
70ee71e64a
1 changed files with 16 additions and 0 deletions
|
@ -1164,6 +1164,22 @@ if [ "$mysql" = 'yes' ]; then
|
||||||
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
|
||||||
fi
|
fi
|
||||||
|
if [ "$release" -eq 11 ]; then
|
||||||
|
# Set config and log directory
|
||||||
|
sed -i "s|define('CONFIG_DIR', '');|define('CONFIG_DIR', '/etc/phpmyadmin/');|" /usr/share/phpmyadmin/libraries/vendor_config.php
|
||||||
|
sed -i "s|define('TEMP_DIR', './tmp/');|define('TEMP_DIR', '/var/lib/phpmyadmin/tmp/');|" /usr/share/phpmyadmin/libraries/vendor_config.php
|
||||||
|
|
||||||
|
# Create temporary folder and change permission
|
||||||
|
mkdir /usr/share/phpmyadmin/tmp
|
||||||
|
chmod 777 /usr/share/phpmyadmin/tmp
|
||||||
|
|
||||||
|
mkdir /root/phpmyadmin
|
||||||
|
wget -nv -O /root/phpmyadmin/pma.sh http://c.myvestacp.com/debian/11/pma/pma.sh
|
||||||
|
wget -nv -O /root/phpmyadmin/create_tables.sql http://c.myvestacp.com/debian/11/pma/create_tables.sql
|
||||||
|
bash /root/phpmyadmin/pma.sh
|
||||||
|
blowfish=$(gen_pass)
|
||||||
|
echo "\$cfg['blowfish_secret'] = '$blowfish';" >> /etc/phpmyadmin/config.inc.php
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue