# Revision history [back]

### Where is mysql.so located after installing mariaDB?

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?