简体   繁体   中英

How can I check if I have mysqli in my web server using cPanel?

I'm using...

  • PHP version 5.4.28
  • Filezilla
  • Wordpress
  • cPanel
  • MediaTemple hosting

I get this error Fatal error: Call to undefined function mysqli_connect() , after trying to connect to my database with mysqli functions. I've read online that either mysqli isn't enabled, it may not be installed. I know I have to check my php.ini file located in /usr/local/lib/, but I don't how know look for that. I'm using cPanel's WHM and it looks like this... cpanel WHM

Any suggestions?

You need to create phpinfo page in your account through cPanel file manger and then try to browse that to check all php information of your server.

Here are the php code of phpinfo page.

<?php
phpinfo();
php?> 

If you have WHM you can see and install PHP modules via Easy Apache.

1) Search "Easy Apache" in search box of WHM

2) Click "show more" from DEFAULT profile.

3) You can see all installed modules. Check for MySQL Improved. It's mysqli.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM