Q:

Linux PHP Fatal error: Call to undefined function mysqli_connect()

I have a problem regarding connecting the database it is giving this error
Fatal error: Call to undefined function mysqli_connect()

Which, I have spend the past 4 hours trying to figured out and I already did these steps:

Change extension=mysql.so and extension=mysqli.so
extension_dir=/PATH for php.ini
Checked which modules are loaded or install with php - m

I JUST PUT MY INFOPHP() IN PASTEBIN SORRY, MY WEBSITE IS RUNNING UNDER USERNAME AND PASSWORD PROTECTING BECAUSE IS A PRIVATE UNIVERSITY SERVER..
http://pastebin.com/dKKdwWTb
I am not too sure what else I can do about, just in case I have added the link for paste bin for my php.ini file
http://pastebin.com/QNK6mGqV
Well, I hope someone could see what I have been able to see and could help me out.

A:

Check output of phpinfo() in web page. php -m is for cli, your mod_apache probably be using a different php.ini than the cli one.  
edit
After seeing your web phpinfo() we can see my assumption is correct. You really are using a different php.ini for your apache, and in it the mysqli extension is not enabled.
in the phpinfo() output you have the details on where to find the php.ini file, and where is the extension directory.
Cheers.

