Can't Connect Prestashop with multi php versions

Hello, In my Droplet i have php 7.4. I installed 7.3 with

When I use a 7.4 Prestashop find a database, but when i change it to php 7.3 I have this erreur : Database Server is not found. Please verify the login, password and server fields (DbPDO)

You help please. Thx


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @KFSys Thank you for answer. My sql it’s OK .


sudo apt-get install php7.3-mysql Reading package lists… Done Building dependency tree Reading state information… Done php7.3-mysql is already the newest version ( 0 upgraded, 0 newly installed, 0 to remove and 35 not upgraded.


But he don’t work. but if I change php site to 7.4 it work’s.

you can see my phpinfo in

Thank you

Hi @khalid94.

Are you sure you have the php-mysql extension? Make sure you type in the following inside of your droplet

sudo apt-get install php7.3-mysql

If it’s not installed, select Y and install it.

That should help with your issues.