Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

816
Views
How do I install the MySQL extension for PHP 7 on CentOS 8?

I was trying to install WordPress on my CentOS 8 server today when I received this error:

"Your PHP installation appears to be missing the MySQL extension which is required by WordPress."

I understand that this extension has been removed in PHP 7 and above.

I've tried both of the following:

  sudo yum update
  sudo yum install php70w-mysql
  sudo yum install php-mysql

However, I receive the following message:

 No match for argument: php70w-mysql
 Error: Unable to find a match: php70w-mysql

or

   No match for argument: php-mysql
   Error: Unable to find a match: php-mysql

Please let me know how I can get this MySQL extension installed.

Thanks for your help!

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

as far as i know, php-mysql does not longer apply for centos8-PHP 7 and more, try this, it should update your PHP installation and enable you to use mysql commands>

yum install php-mysqlnd

do the normal installation process (y) and then, you can test with:

php -m

and check among the enabled modules/extensions, for the ones that start with mysql, you should have at least these two>

enter image description here

restart your apache service, and you should be OK.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!