LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-19-2020, 02:00 AM   #1
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Rep: Reputation: 28
Mysqli support is missing


I have loaded Mysql to my localhost with apache 2. My shopping cart installation gives the message

Problems with your MySQL (mysqli) support. Your server appears to be missing the mysqli extension for PHP, and without it we cannot connect to your database.

How do I add it on Fedora 31?

Thanks
 
Old 03-19-2020, 05:54 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,672

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Your shopping cart may require other modules...
Code:
sudo dnf install php php-common
sudo dnf install php-mysqlnd php-xml php-json php-gd php-mbstring
Google lately...
 
Old 03-19-2020, 09:04 AM   #3
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by michaelk View Post
Your shopping cart may require other modules...
Code:
sudo dnf install php php-common
sudo dnf install php-mysqlnd php-xml php-json php-gd php-mbstring
Google lately...
I have Googled it and nothing is available.

I will try your suggestions.

Thanks
 
Old 03-19-2020, 09:21 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,609

Rep: Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960Reputation: 7960
Quote:
Originally Posted by bscho View Post
I have loaded Mysql to my localhost with apache 2. My shopping cart installation gives the message
Problems with your MySQL (mysqli) support. Your server appears to be missing the mysqli extension for PHP, and without it we cannot connect to your database. How do I add it on Fedora 31?

Thanks
As michaelk noted, Google has much information on this. You don't say what version of PHP or MySQL, but given the message it's likely you've just updated to the latest PHP, which means your PHP code will need a "mysqli_connect" call, instead of "mysql"...which means your shopping cart software updated, and you're missing the php-mysqli package:
Code:
$ sudo dnf install php-mysqli
You will HAVE TO update your PHP MySQL calls to use the mysqli methods.
 
Old 03-19-2020, 09:25 AM   #5
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by TB0ne View Post
As michaelk noted, Google has much information on this. You don't say what version of PHP or MySQL, but given the message it's likely you've just updated to the latest PHP, which means your PHP code will need a "mysqli_connect" call, instead of "mysql"...which means your shopping cart software updated, and you're missing the php-mysqli package:
Code:
$ sudo dnf install php-mysqli
You will HAVE TO update your PHP MySQL calls to use the mysqli methods.
I have loaded the latest LAMP MariaDB

I think you have given the right install candidate.

I will try that thanks.
 
Old 03-19-2020, 04:37 PM   #6
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by TB0ne View Post
As michaelk noted, Google has much information on this. You don't say what version of PHP or MySQL, but given the message it's likely you've just updated to the latest PHP, which means your PHP code will need a "mysqli_connect" call, instead of "mysql"...which means your shopping cart software updated, and you're missing the php-mysqli package:
Code:
$ sudo dnf install php-mysqli
You will HAVE TO update your PHP MySQL calls to use the mysqli methods.
That sudo dnf install php-mysqli worked thanks
 
  


Reply


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
How do I install the missing the mysqli extension for PHP to Mysql? bscho Linux Mint 3 07-07-2016 01:33 PM
The mysqli extension is missing. DeSouffle Linux - Server 1 08-31-2012 12:58 PM
[SOLVED] CentOS 5.5 mysqli support junust Linux - General 3 03-16-2011 10:09 AM
mysqli installation error for php5 @unstable janus_tr Debian 3 08-25-2006 05:52 PM
LXer: Performing Basic Tasks with MySQL 4.1 and Above, using mysqli with ... LXer Syndicated Linux News 0 07-02-2006 09:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:02 PM.

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
Open Source Consulting | Domain Registration