I am using Windows 10 and have installed Apache2.4, PHP7.2 and MySQL. I am having trouble installing the driver for pdo_mysql
I have edited my php.ini file, and in the extensions section I have:
I have also set the extension_dir directive to:
In the command console I enter "php -m" and I can see PDO and pdo_mysql both listed.
I have restarted Apache but when I run a .php file including either
I can see that I do not have any drivers installed for PDO.
In my httpd.conf file I have
I have tried changing this to use forward and backslashes, and including and removing the trailing slash, restarting Apache after each change. I still cannot get the pdo_mysql driver to load.
It seems to me that the problem is with Apache not with PHP (as the pdo_mysql module appears when I run php -m in the command console), but I don't understand what I have done wrong. I searched for other people having the same problem but the solution always seemed to be the PHPIniDir, which I think I have set correctly.
The machine I am using was already running IIS so I have Apache listening to port 8090, rather than the default. I am not sure if this is relevant or not.
Any help would be appreciated!