I'm having trouble installing MS SQL

php startup unable to load dynamic library php_mssql.dll

I've installed the latest WAMP Server on XP Home SP3 but when I try to load ms_sql I get an error similar to the above.

I've download PHP 5.2.11 .zip file and taken the php_mssql.dll and put it in the php ext folder, windows and system32 but still get the same error.

Any ideas what I need to do?

    check your php.ini and find out which file and path it uses when trying to load the php_mssql.dll...

      extension_dir = "C:/wamp/bin/php/php5.3.0/ext/"

      PHP Startup: Uable to load dynamic library 'C:/wamp/bin/php/php5.3.0/ext/php_mssql.dll' - The specified module found not be found.

      EDIT: The file does exist in this location.

        and? is this correct? the dll in question is not in the folder specified there? maybe it is not named correctly?

        OR could it be that there is a problem with access rights to that folder or file?

          The file exists, the path is correct, it's named correctly and it can access all the other .dll in that folder (this is also a windows system as mentioned above).

            you need at least a second file called libmssql.dll or something

            I just dug up this it's for mysql but I believe it might apply to your problem all the same:

            dll troubleshooting

              Thanks but the libmysql.dll exisits and the php_mysql loads so I assumed it wasn't that but it was worth double checking and still no joy.

                libmssql.dll exists also?

                  Bjom;10936143 wrote:

                  libmssql.dll exists also?

                  Sorry I misread that however I cant find libmssql.dll on my machine or google.

                    Wouldn't that be shipped with MS SQL Server?

                      http://www.php.net/manual/en/mssql.requirements.php

                      Requirements for Win32 platforms.

                      The extension requires the MS SQL Client Tools to be installed on the system where PHP is installed. The Client Tools can be installed from the MS SQL Server CD or by copying ntwdblib.dll from \winnt\system32 on the server to \winnt\system32 on the PHP box. Copying ntwdblib.dll will only provide access through named pipes. Configuration of the client will require installation of all the tools.

                      Requirements for Unix/Linux platforms.

                      To use the MSSQL extension on Unix/Linux, you first need to build and install the FreeTDS library. Source code and installation instructions are available at the FreeTDS home page: » http://www.freetds.org/

                      If you are running Apache, run a configtest to see what other errors you may get (versioning etc)

                        Hey,

                        Thanks, I found ntwdblib.dll but now I get this error;

                        php startup mssql unable to initialize module Module compiled with module API=20060613 PHP complied with module API=20090226
                        These options need to match

                        So I'm not sure which version I need or how to fins it tbh

                          Write a Reply...