Error "Class "mysqli_driver" not found" on new installation on a shared server

Hi! This is my first time installing this software.
Tried thru softaculous but errored out, then tried installing it manually and got a little further along, but got stopped by this error.

My hosting has activated

  • mysqlnd
  • nd_mysqli
    as dependencies, but rejects activating
  • mysqli
    as conflicting

PHP version alt-php81

Any idea what i can change to make it work? Thank you!

Complete error =>

An uncaught Exception was encountered

Type: Error

Message: Class “mysqli_driver” not found

Filename: /home/fabric14//public_html/vendor/codeigniter/framework/system/database/drivers/mysqli/mysqli_driver.php

Line Number: 123

Backtrace:

File: /home/fabric14//public_html/application/third_party/MX/Loader.php
Line: 177
Function: DB

File: /home/fabric14//public_html/application/modules/setup/controllers/Setup.php
Line: 280
Function: database

File: /home/fabric14//public_html/application/modules/setup/controllers/Setup.php
Line: 217
Function: check_database

File: /home/fabric14//public_html/index.php
Line: 329

Found the database config file (/application/config/database.php) and after changing that to ‘pdo’ resulted in “Message: Class “PDO” not found”

  • Sergio

Hi @Sergio_A_Gonzalez and welcome to InvoicePlane!

What DBs can your hosting offer to you? Do you only have MySQL at your disposal?

About the conflict with mysqli is it solvable or your hosting refuses to activate the mysqli PHP driver?

2 Likes

Thank you Naui!

Can only create MySQL databases

Poking arourd PHPMyAdmin, seems that mysqli is indeed available

My hosting only provides CPanel for self admin

Info from PHPMyAdmin =>

  • Tipo de servidor: MySQL
  • Versión del servidor: 5.7.43 - MySQL Community Server (GPL)

Servidor web

  • cpsrvd 11.110.0.9
  • Versión del cliente de base de datos: libmysql - mysqlnd 8.1.16
  • extensión PHP: mysqli curl mbstring
  • Versión de PHP: 8.1.16

Could you provide an excerpt of your phpinfo file? If it might contain personal info (such as domain and so on) you can send it to me in private.

1 Like