phpwordpressmysqlicpanelmediatemple

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


I'm using...

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?


Solution

  • 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.

    enter image description here