cd /usr/local/lsws/Example/html
wget https://files.phpmyadmin.net/phpMyAdmin/4.7.4/phpMyAdmin-4.7.4-all-languages.zip
unzip phpMyAdmin-4.7.4-all-languages.zip
mv phpMyAdmin-4.7.4-all-languages phpmyadmin
cd /usr/local/lsws/Example/html
wget https://files.phpmyadmin.net/phpMyAdmin/4.7.4/phpMyAdmin-4.7.4-all-languages.zip
unzip phpMyAdmin-4.7.4-all-languages.zip
mv phpMyAdmin-4.7.4-all-languages phpmyadmin
cd /usr/share/phpMyAdmin/ or where phpmyadmin was installed
cp config.sample.inc.php config.inc.php
vi config.inc.php
Set $cfg[‘blowfish_secret’] = “”
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';
If you have some issue on MySQL 8 database:
CREATE USER 'user'@'localhost' IDENTIFIED BY 'root';
GRANT ALL PRIVILEGES ON user.* TO 'user'@'localhost' WITH GRANT OPTION;
SET GLOBAL validate_password.policy=LOW;
find . -type f -exec bash -c 'grep -q "some_string" < <(head -n 1 "$1")' _ {} \; -printf '%p\n'