I have a problem with phpmyadmin in Ubuntu 20.04.
http://localhost/phpmyadmin not works.
When I installed Ubuntu 20.04 i done this steps:
- sudo apt update
- sudo apt install apache2
- sudo apt install mysql-server
- sudo apt install php libapache2-mod-php php-mysql
- sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json
php-curl (password: password) - sudo apt install phpmyadmin
- sudo mysql
- INSTALL COMPONENT "file://component_validate_password";
- sudo phpenmod mbstring
- sudo systemctl restart apache2
- ALTER USER ‘root’@’localhost’ IDENTIFIED WITH caching_sha2_password
BY ‘password’; - mysql -u root -p
- CREATE USER ‘newuser’@’localhost’ IDENTIFIED WITH
caching_sha2_password BY ‘password’; - GRANT ALL PRIVILEGES ON . TO ‘newuser’@’localhost’ WITH GRANT
OPTION; - sudo mysql_secure_installation (all i set No)
what am i missing ? what am i doing wrong ?
Thanks
2
Answers
In my case, it was a version issue. I installed phpmyadmin version 5, where PHP version was 7.4 which is not compatible with phpmyadmin version 5. After upgrading PHP version to 8.0 my issues went away. You can downgrade phpmyadmin or upgrade PHP or vice versa. In a word you should make sure that you are not making any version mismatch issue.
Try this to fix the issue.
Usually, this is an issue after installation in 16.04, 18.04, and 20.04 (Focal Fossa) and higher too.
To fix it:
sudo a2enconf phpmyadmin.conf
sudo systemctl restart apache2