Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't install phpmyadmin -keep getting error #17726

Closed
hdawg12 opened this issue Sep 17, 2022 · 17 comments
Closed

can't install phpmyadmin -keep getting error #17726

hdawg12 opened this issue Sep 17, 2022 · 17 comments
Assignees
Labels
question Used when we need feedback from the submitter or when the issue is a question about PMA
Projects

Comments

@hdawg12
Copy link

hdawg12 commented Sep 17, 2022

I keep getting this issue when i try localhost/phpmyadmin

PHP 7.2.5+ is required.

Currently installed version is: ' . PHP_VERSION . '
'); } // phpcs:disable PSR1.Files.SideEffects define('PHPMYADMIN', true); // phpcs:enable require_once ROOT_PATH . 'libraries/constants.php'; /** * Activate autoloader */ if (! @is_readable(AUTOLOAD_FILE)) { die( '

File ' . AUTOLOAD_FILE . ' missing or not readable.
' . '

Most likely you did not run Composer to ' . '[' . 'install library files](https://docs.phpmyadmin.net/en/latest/setup.html#installing-from-git).
' ); } require AUTOLOAD_FILE; global $route, $containerBuilder, $request; Common::run(); $dispatcher = Routing::getDispatcher(); Routing::callControllerForRoute($request, $route, $dispatcher, $containerBuilder);
@skeeith
Copy link

skeeith commented Sep 21, 2022

What PHP version are you running? can you give me details on version is it?

PHP 7.2.5+ is required. - you must be running a version that is lower than 7.2

@williamdes
Copy link
Member

What PHP version are you running? can you give me details on version is it?

PHP 7.2.5+ is required. - you must be running a version that is lower than 7.2

Also what phpMyAdmin version are you using ?

It may seem like your webserver is not handling php files ?

@williamdes williamdes added the question Used when we need feedback from the submitter or when the issue is a question about PMA label Sep 21, 2022
@williamdes williamdes added this to Needs triage in Questions via automation Sep 21, 2022
@williamdes williamdes moved this from Needs triage to waiting... in Questions Sep 21, 2022
@hdawg12
Copy link
Author

hdawg12 commented Sep 22, 2022

image

I'm running php 8.1.5

Here is a screenshot of phpmyadmin version

image

I uninstalled mysql database from kali and I'm now using xamp(lampp). But I still wanna know what happened with my issue and how I can solve it once I reinstall mysql

@williamdes
Copy link
Member

Hi @hdawg12
Your phpMyAdmin is running fine, what is the error you are getting ?

@hdawg12
Copy link
Author

hdawg12 commented Sep 22, 2022

when I use my ip address as the host I get this error:

image

Here is my settings from my config.inc.php fil

config_settings
e

@lotus551tw
Copy link

I have the same issue today. After clearing the browser(Firefox) cache (or open in the private window), it is working fine now.

@williamdes
Copy link
Member

I have the same issue today. After clearing the browser(Firefox) cache (or open in the private window), it is working fine now.

This is quite strange @lotus551tw

Hi @hdawg12

when I use my ip address as the host I get this error:

Can you connect with the MySQL CLI ?
Does root have no password ?

@hdawg12
Copy link
Author

hdawg12 commented Sep 24, 2022

I have the same issue today. After clearing the browser(Firefox) cache (or open in the private window), it is working fine now.

I tried clearing my cache, but that didn't work either. Right now I'm using lampp and it seems to be working. I uninstalled mysql from Kali so I don't have that anymore, but if I reinstall it I wonder if I will still have the same issue?

@hdawg12
Copy link
Author

hdawg12 commented Sep 24, 2022

I have the same issue today. After clearing the browser(Firefox) cache (or open in the private window), it is working fine now.

This is quite strange @lotus551tw

Hi @hdawg12

when I use my ip address as the host I get this error:

Can you connect with the MySQL CLI ? Does root have no password ?

Hi @williamdes ,

I'm using lampp now and it seems to work. I had to go into phpmyadmin and create a username and password. Now I'm able to login using my IP address instead of localhost. I had to uninstall mysql from my Kali, but I don't know why it wasn't working in the first place.

@williamdes
Copy link
Member

Hi @williamdes ,
I'm using lampp now and it seems to work. I had to go into phpmyadmin and create a username and password. Now I'm able to login using my IP address instead of localhost. I had to uninstall mysql from my Kali, but I don't know why it wasn't working in the first place.

Hi !
I am glad this one is solved now, thank you for keeping us updated

@williamdes williamdes self-assigned this Sep 28, 2022
@williamdes williamdes moved this from waiting... to Closed/Done in Questions Sep 28, 2022
@pabloab
Copy link

pabloab commented Sep 19, 2023

On a Debian 11 12, after apt install phpmyadmin (v4:5.2.1+dfsg-1., which installs PHP 8.2.7; also set MySQL application password for phpmyadmin), on mysite.com/phpmyadmin I'm getting:

PHP 7.2.5+ is required.

Currently installed version is: ' . PHP_VERSION . '
'); } // phpcs:disable PSR1.Files.SideEffects define('PHPMYADMIN', true); // phpcs:enable require_once ROOT_PATH . 'libraries/constants.php'; /** * Activate autoloader */ if (! @is_readable(AUTOLOAD_FILE)) { die( '

File ' . AUTOLOAD_FILE . ' missing or not readable.
' . '

Most likely you did not run Composer to ' . '[' . 'install library files](https://docs.phpmyadmin.net/en/latest/setup.html#installing-from-git).
' ); } require AUTOLOAD_FILE; global $route, $containerBuilder, $request; Common::run(); $dispatcher = Routing::getDispatcher(); Routing::callControllerForRoute($request, $route, $dispatcher, $containerBuilder);

Not sure if I should file a bug or create a new question.

@williamdes
Copy link
Member

Hi @pabloab
You are probably missing libapache2-mod-php
And restarting apache2
Can you check?
You should open a new issue to discuss this if still unsolved :)

@pabloab
Copy link

pabloab commented Sep 19, 2023

Thanks @williamdes ! I installed libapache2-mod-php (also installs libapache2-mod-php8.2). It wasn't installed. It seems it restarts apache2 automatically, as shown on sudo systemctl status apache2.service. Everything's working fine.

Shouldn't therefore be libapache2-mod-php package a dependency of phpmyadmin?

@williamdes
Copy link
Member

Shouldn't therefore be libapache2-mod-php package a dependency of phpmyadmin?

It is now since Debian bookworm
See https://packages.debian.org/bookworm/phpmyadmin
It should also show on apt info phpmyadmin

@pabloab
Copy link

pabloab commented Sep 19, 2023

Sorry, I was working on Debian 12, not 11. As shown there and on terminal, it is a recommended package, not mandatory. Would be great a warning on dpkg log, or at least a better message. I was searching around PHP Composer.

@williamdes
Copy link
Member

Sorry, I was working on Debian 12, not 11. As shown there and on terminal, it is a recommended package, not mandatory. Would be great a warning on dpkg log, or at least a better message. I was searching around PHP Composer.

Indeed, sorry, I need to make a better message for my Debian/Ubuntu users on the page that displays php code to the user
composer should not be used for Debian/Ubuntu installs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Used when we need feedback from the submitter or when the issue is a question about PMA
Projects
Questions
  
Closed/Done
Development

No branches or pull requests

6 participants
@pabloab @williamdes @skeeith @hdawg12 @lotus551tw and others