LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-25-2015, 12:16 PM   #1
fugitive90
LQ Newbie
 
Registered: Aug 2015
Posts: 12

Rep: Reputation: Disabled
Fatal error: Call to undefined function mysqli_connect() Manjaro


Hi guys.

First, sorry for repeating a topic, i've searched all similar topics, but those solutions didn't help me.
I've recently switched to Manjaro Xfice, and ran into problems when creating php pages, when I ran
"mysqli_connect("localhost","myusername", "mypassword");"

and try to execute it I get this fatal error

Fatal error: Call to undefined function mysqli_connect()

I've uncommented extension=mysql.so in my php.ini file and even mysqli extension, but I still getting this error when I try to connect to MariaDB..

Can someone take a look at my phpinfo file to see are there some errors? PHP executes fine, but problem is when i try to interact with DB

here is phpinfo() output
http://pastebin.com/DTZJ3btx

and here is my php.ini file

http://pastebin.com/bSq1An0S

Thanks guys.
 
Old 08-25-2015, 02:15 PM   #2
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by fugitive90 View Post

I've uncommented extension=mysql.so in my php.ini file and even mysqli extension, but I still getting this error when I try to connect to MariaDB..
Did you restart Apache or Nginx or whatever you use as web server after you uncommented those lines?

Best regards,
HMW
 
Old 08-25-2015, 03:30 PM   #3
fugitive90
LQ Newbie
 
Registered: Aug 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
Yes I've did. Also rebooted couple of times.. didn't help..
 
Old 08-25-2015, 07:08 PM   #4
fugitive90
LQ Newbie
 
Registered: Aug 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
Closed

Solved it by reinstalling..
 
  


Reply

Tags
manjaro, mysql, php


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Fatal error: Call to undefined function mysql_connect() bulletproof.rs Linux - Software 10 06-15-2011 10:15 AM
Fatal error: Call to undefined function imagecreatefromjpeg() jickson Slackware 3 05-18-2011 05:58 AM
PHP Fatal error: Call to undefined function mysql_connect() grob115 Programming 4 11-27-2010 01:01 AM
Fatal error: Call to undefined function: gzinflate() Beauford-2 Slackware 2 12-07-2006 07:51 PM
Fatal error: Call to undefined function: mail() saeed Linux - Software 0 10-07-2003 04:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration