KodeKloud E-commerce Application - php-mysql is not working

Hi Team,

I tried using the Centos 8 Playground here on KodeKloud to follow the Demo but I am stuck at installing httpd and php with the command:

$ sudo yum install -y httpd php php-mysql

It wont work on the playground and gave the following error.

[email protected] ~ ➜ sudo yum install -y httpd php php-mysql
Last metadata expiration check: 0:10:08 ago on Thu Aug 18 01:32:28 2022.
No match for argument: php-mysql
Error: Unable to find a match: php-mysql

So, i tried to install each service separately, that is httpd alone first, then php but still got the same error for php-mysql as seen below;

[email protected] ~ ➜ sudo yum install -y php-mysql
Last metadata expiration check: 0:12:02 ago on Thu Aug 18 01:32:28 2022.
No match for argument: php-mysql
Error: Unable to find a match: php-mysql

What do I do please?

Thank you.

Adeola

Hi @aadefolaju

A quick google search reveals that the mysql extension for php is no longer called php-mysql. It is now called php-mysqlnd

[email protected] ~ ➜  sudo yum install -y php-mysqlnd
Last metadata expiration check: 0:04:06 ago on Thu Aug 18 04:30:41 2022.
Dependencies resolved.
============================================================================================================================================================
 Package                         Architecture               Version                                                     Repository                     Size
============================================================================================================================================================
Installing:
 php-mysqlnd                     x86_64                     7.2.24-1.module_el8.2.0+313+b04d0a66                        appstream                     190 k
Installing dependencies:
...
1 Like

Thanks a lot @Alistair.

Have a nice day.

Adeola