Question: MYSQL and apache server are already installed on my server.
But still I encountered these problem.
I dont understand the terms to compile php with --with-mysql
Where should i compile? i am using window server.
or how to install the mysql.so module??

> 
> Checking environment...
> 
> 
> Please include all of the lines below
>  when reporting installation problems.
>  PHP 5.2.14 installed Could not find a
>  suitable database driver! For MySQL,
>  compile PHP using --with-mysql, or
>  install the mysql.so module For
>  PostgreSQL, compile PHP using
>  --with-pgsql, or install the pgsql.so module For SQLite, compile PHP using
>  --with-pdo\_sqlite, or install the pdo\_sqlite.so module For MSSQL,
>  compile PHP using
>  --with-mssql\_not\_ready, or install the mssql\_not\_ready.so module For DB2,
>  compile PHP using --with-ibm\_db2, or
>  install the ibm\_db2.so module For
>  Oracle, compile PHP using --with-oci8,
>  or install the oci8.so module
> 
> 
>

Answer: 
Look in /php\_install\_dir/extensions. There should be a file named "php\_mysql.dll". If so, enable it in php.ini. If not, download the dll, copy it to the extension dir and enable in php.ini. Remember to restart Apache.

See [this page](http://php.net/manual/en/install.windows.extensions.php) for more info (make sure you read the comments).
For PHP: 5.6.10 and MySQL: 5.0.24a

1. Go to the root folder of PHP installation
2. Find a file called php.ini-production
3. Save the file as php.ini
4. Edit the file and uncomment the following contents

;extension=php\_mysqli.dll  

;extension\_dir = "ext"

and replace it with,  

extension= php\_mysqli.dll  

extension\_dir = "D:\Programs\php\ext”