Database connect failed in UNA-v.14.0.0-A3

Hi, I'm trying to install UNA-v.14.0.0-A3 in Ubuntu server 20.04.

But I got an error and can't install it. I looked other similar discussions. I had doubt it's not copatible with PHP 7.4.

But I found there's no related "PHP 7.4 compatibility" issues in GitHub.

Hope hear from anyone who knows about this error. Thank you

Kosuke

MariaDB 10.3.39

PHP 7.4

Mysql error:

could not find driver

collation_connection:

Debug backtrace:

Array
(
    [0] => Array
        (
            [file] => /var/www/truth-medshia-ruh/inc/classes/BxDolDb.php
            [line] => 200
            [function] => __construct
            [class] => PDO
            [type] => ->
        )

    [1] => Array
        (
            [file] => /var/www/truth-medshia-ruh/inc/classes/BxDolDb.php
            [line] => 128
            [function] => connect
            [class] => BxDolDb
            [type] => ->
        )

    [2] => Array
        (
            [file] => /var/www/truth-medshia-ruh/install/classes/BxDolInstallSiteConfig.php
            [line] => 329
            [function] => getInstanceWithConf
            [class] => BxDolDb
            [type] => ::
        )

    [3] => Array
        (
            [file] => /var/www/truth-medshia-ruh/install/classes/BxDolInstallSiteConfig.php
            [line] => 296
            [function] => processConfigDataDb
            [class] => BxDolInstallSiteConfig
            [type] => ->
        )

    [4] => Array
        (
            [file] => /var/www/truth-medshia-ruh/install/classes/BxDolInstallSiteConfig.php
            [line] => 246
            [function] => processConfigData
            [class] => BxDolInstallSiteConfig
            [type] => ->
        )

    [5] => Array
        (
            [file] => /var/www/truth-medshia-ruh/install/classes/BxDolInstallController.php
            [line] => 89
            [function] => getFormHtml
            [class] => BxDolInstallSiteConfig
            [type] => ->
        )

    [6] => Array
        (
            [file] => /var/www/truth-medshia-ruh/install/classes/BxDolInstallController.php
            [line] => 24
            [function] => actionSiteConfig
            [class] => BxDolInstallController
            [type] => ->
        )

    [7] => Array
        (
            [file] => /var/www/truth-medshia-ruh/install/index.php
            [line] => 59
            [function] => run
            [class] => BxDolInstallController
            [type] => ->
        )

)

Called script:

/install/index.php

  • 395
  • More
Replies (4)
    • Hello @Kosuke !

      Which sub version version of 7.4 PHP do you have? Is there any possibility to switch on PHP 8.x?

      • Hello, I have PHP 7.4.33 currently. I host it by my own on AWS, so I can try to update to 8.x.

        • Yes, it might help if PHP 8 has all the necessary parts for work. You need a module called pdo_mysql there.

          • I switched to PHP 8.0.30 & got the same error (Mysql error:

            could not find driver) .

            A module called pdo_mysql  is installed:

            $ php -m |grep mysql
            
            mysqli
            mysqlnd
            pdo_mysql
            

            PHP version:

            $ php -v
            
            PHP 8.0.30 (cli) (built: Apr 11 2024 22:14:14) ( NTS )
            Copyright (c) The PHP Group
            Zend Engine v4.0.30, Copyright (c) Zend Technologies
                with Zend OPcache v8.0.30, Copyright (c), by Zend Technologies
            
            Login or Join to comment.