skip to Main Content

I’m using Opencart 3.0.2 on FreeBSD. I need to install a zip module to be able to install the OpenCart extension, but PHP 7.1 is out of date and no longer supports module installation. So I decided to upgrade the PHP to version 7.3.15. After updating and installing all the required modules,

I got a fatal error:

Class ‘mysqli’ not found

Configuration File (php.ini) Path: /usr/local/etc
Loaded Configuration File:         /usr/local/etc/php.ini
Scan for additional .ini files in: /usr/local/etc/php
Additional .ini files parsed:      /usr/local/etc/php/ext-05-ioncube.ini,
/usr/local/etc/php/ext-18-session.ini,
/usr/local/etc/php/ext-20-ctype.ini,
/usr/local/etc/php/ext-20-curl.ini,
/usr/local/etc/php/ext-20-dom.ini,
/usr/local/etc/php/ext-20-filter.ini,
/usr/local/etc/php/ext-20-gd.ini,
/usr/local/etc/php/ext-20-hash.ini,
/usr/local/etc/php/ext-20-json.ini,
/usr/local/etc/php/ext-20-mbstring.ini,
/usr/local/etc/php/ext-20-mcrypt.ini,
/usr/local/etc/php/ext-20-mysqli.ini,
/usr/local/etc/php/ext-20-openssl.ini,
/usr/local/etc/php/ext-20-xml.ini,
/usr/local/etc/php/ext-20-zip.ini,
/usr/local/etc/php/ext-20-zlib.ini,
/usr/local/etc/php/ext-30-memcache.ini

[PHP Modules]
Core
ctype
curl
date
dom
filter
gd
hash
ionCube Loader
json
libxml
mbstring
mcrypt
memcache
mysqli
mysqlnd
openssl
pcre
Reflection
session
SPL
standard
xml
zip
zlib

[Zend Modules]
the ionCube PHP Loader

2

Answers


  1. Chosen as BEST ANSWER

    It was solved by upgrade the Apache module to the current version of PHP (apache-mod_php-7.3)


  2. you need to install mysqli refer below link
    https://www.php.net/manual/en/mysqli.installation.php

    after installed mysqli then still have a problem, please post your operating system and anything else that might help diagnose it further.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search