Ask Your Question

Where is located after installing mariaDB?

asked 2016-08-16 17:21:34 -0500

powergame gravatar image

In order to start WordPress development, I have copied wordpress directory under /var/www/html . Web server works OK. Also PHP and mariaDB are installed, all separately (not using ready LAMP software stacks). The problem is when I surf to http://localhost/wordpress , I receive the following error:

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

I looked into php.ini located in /etc directory. Somewhere in the paths section, I see, which is I think the extension requested in the abovementioned notification from WordPress. But, I cannot find on my system. The whereis command gives the following directories:

mysql: /usr/bin/mysql /usr/lib64/mysql /usr/include/mysql /usr/share/man/man1/mysql.1.gz

However, is not anywhere in any of the above directories. I am sure mysql functionality is perfectly installed and enabled using mariaDB as I already connected to mysql and created a database, but I do not know how I should enable its extension for PHP. I tried several edits in php.ini file like adding /usr/include/mysql for include path and /usr/lib64/mysql for path, but all were unsuccessful. Actually, the only mysql-related files with *.so extension that I was able to find were the following:

So, in short, where is, and how should I get PHP to recognize it as required by WordPress?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-08-16 19:09:55 -0500

ssieb gravatar image

You're missing the PHP module for mysql (mariadb). Try dnf install php-mysqlnd.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-08-16 17:21:34 -0500

Seen: 422 times

Last updated: Aug 16 '16