jfreak53
jfreak53

Reputation: 2369

Xampp - MS SQL - PHP 5.5

I'm trying to get the PDO SQL driver to work with my Xampp and PHP 5.5 installation. I have followed the directions found below as Microsoft has yet to make a PHP 5.5 SQL driver:

enter image description here

enter image description here

enter image description here

As you can see by the images I have downloaded the file, placed it into my C:\xampp\php\ext folder and added it to php.ini and restarted apache.

But still when running phpinfo(); it shows it as not loaded. What did I do wrong?

enter image description here

EDIT:

Error log for PHP shows this:

[25-Sep-2014 14:22:11 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_sqlsrv_55_ts.dll' - The specified module could not be found.
 in Unknown on line 0
[25-Sep-2014 14:22:11 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_pdo_sqlsrv_55_ts.dll' - The specified module could not be found.
 in Unknown on line 0

Upvotes: 1

Views: 2407

Answers (1)

jfreak53
jfreak53

Reputation: 2369

It seems by using Dependency Walker (http://www.dependencywalker.com) I found out that the modules couldn't find php5ts.dll file, even though it was directory up.

So I edited the Windows 2008 R2 Environment Variables and added C:\xampp\php to the Path variable and it worked like a charm.

I used the instructions here on how to edit the variables in Windows:

http://thommck.wordpress.com/2010/12/06/how-to-add-a-path-to-the-system-variables-in-windows-2008-r2/

Upvotes: 3

Related Questions