Ask Your Question
1

Where is mysql.so located after installing mariaDB?

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

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 mysql.so, which is I think the extension requested in the abovementioned notification from WordPress. But, I cannot find mysql.so on my system. The whereis mysql.so command gives the following directories:

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

However, mysql.so 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 mysql.so path, but all were unsuccessful. Actually, the only mysql-related files with *.so extension that I was able to find were the following:

libmysqlclient_r.so       
libmysqlclient.so

So, in short, where is mysql.so, 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
2

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

ssieb gravatar image

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 362 times

Last updated: Aug 16 '16