OpenCart: Fatal Error: Class 'Mysqli' Line 7

只谈情不闲聊 提交于 2020-01-11 13:07:07

问题


I have problem for installation OpenCart in cPanel with Softacolous, when I'm finished for install and during open the site I have message:

Fatal error: Class 'mysqli' not found in /home/radiance/public_html/shoukhin/system/library/db/mysqli.php on line 7

==Info:== OpenCart: Version: 2.0.3.1, 1.5.6.4
Release Date: 29-05-2015

Anything more to solve or get ans? Anyone there to solve it?


回答1:


Please install mysqli into your centos server .

To install mysqli using EachApache:

  1. Login to WHM as 'root' user.
  2. Either search for "EasyApache" or go to Software > EasyApache
  3. Scroll down and select a build option (Previously Saved Config)
  4. Click Start "Start customizing based on profile"
  5. Select the version of Apache and click "Next Step".
  6. Select the version of PHP and click "Next Step".
  7. Choose additional options within the "Short Options List"
  8. Select "Exhaustive Options List" and look for "MySQL Improved extension"
  9. Click "Save and Build"



回答2:


Install the following php extensions:

Curl ZIP Zlib GD Library Mcrypt Mbstrings Xml

The error should go if the extensions are available on the server. I hope this solves your issue and anyone facing a similar issue. Most times the error is not from oc, it's a server error because of the required OC modules that are not available.

Don't forget to restart apache2 after installing the modules.

Check this, if it solves your problem.



来源:https://stackoverflow.com/questions/31290770/opencart-fatal-error-class-mysqli-line-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!