[PHP] Can't get PHP extension to Load
I have a Microsoft 2003 server running IIS 6.0 and PHP 5.1.2. We have an application (Moodle) that uses a database connection to our MSSQL 2000 server. For whatever reason, it doesn't work properly with the built in php_mssql.dll so we have to use a replacement of either FreeTDS or ODBTP. ODBTP is working on the production machine, but is slow as molasses. I configured a test server (Everything the same, OS, IIS, PHP) and set it up to use FreeTDS. It worked a lot faster so I attempted to move the production machine over to FreeTDS. It loads a PHP extension called php_dblib.dll that replaces (the same way ODBTP does) the php_mssql.dll. The problem is that on the production machine, even though it is the same version of everything, it refuses to load the php_dblib.dll. The only error it says is that the "specified module could not be found". The DLL file is definitely in extensions directory, and the path that the error message presents has been triple checked to exist. The version of the DLL file is the same between the two servers and I even went so far as to copy the production server's entire C:\php directory over to the test server and it STILL worked. The only other component is a freetds.conf file that lives at the root directory of "C:\". I checked the permissions of said file and they match on both servers. Anyone have an ideas on this? ---- Aaron Smith[EMAIL PROTECTED] System Administrator (269) 337-7496 Kalamazoo College
RE: [PHP] Can't get PHP extension to Load
It seems to me that if external libraries were required, they'd be in the PHP directory. But when I took the php directory from the production (non-working) server, and put it in place on the test server, it loaded the extension just fine. I'm going to, however, see if there are any differences between the components that are installed in IIS on the two machines. -------- Aaron Smith[EMAIL PROTECTED] System Administrator (269) 337-7496 Kalamazoo College -Original Message- From: Sergiu Voicu [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 30, 2007 12:54 PM To: Aaron Smith Subject: Re: [PHP] Can't get PHP extension to Load Hello Aaron Check to see if this module doesn't require other external libraries, that you don't have on the production machine. Also try to use a debugger to see what calls are made by the apache server when starting. Sergiu Aaron Smith wrote: > I have a Microsoft 2003 server running IIS 6.0 and PHP > 5.1.2. We have an application (Moodle) that uses a database connection > to our MSSQL 2000 server. For whatever reason, it doesn't work properly > with the built in php_mssql.dll so we have to use a replacement of > either FreeTDS or ODBTP. ODBTP is working on the production machine, > but is slow as molasses. I configured a test server (Everything the > same, OS, IIS, PHP) and set it up to use FreeTDS. It worked a lot > faster so I attempted to move the production machine over to FreeTDS. > It loads a PHP extension called php_dblib.dll that replaces (the same > way ODBTP does) the php_mssql.dll. The problem is that on the > production machine, even though it is the same version of everything, it > refuses to load the php_dblib.dll. The only error it says is that the > "specified module could not be found". The DLL file is definitely in > extensions directory, and the path that the error message presents has > been triple checked to exist. The version of the DLL file is the same > between the two servers and I even went so far as to copy the production > server's entire C:\php directory over to the test server and it STILL > worked. The only other component is a freetds.conf file that lives at > the root directory of "C:\". I checked the permissions of said file and > they match on both servers. > > > > Anyone have an ideas on this? > > > > > > Aaron Smith[EMAIL PROTECTED] > > System Administrator (269) 337-7496 > > Kalamazoo College > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Can't get PHP extension to Load
Interesting. Running that comes up with 2 missing dependencies: MSJAVA.DLL (delay-load dependency) and MSVCR71.DLL (apparently a required dependency). However, running the SAME thing on the test server results in the same errors...but it works over there. I did a search for those two files on both servers and they both have the MSVCR71.dll file in the same location but neither of them have the MSJAVA.dll file. Aaron Smith[EMAIL PROTECTED] System Administrator (269) 337-7496 Kalamazoo College -Original Message- From: Roman Neuhauser [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 30, 2007 4:00 PM To: Aaron Smith Cc: php-general@lists.php.net Subject: Re: [PHP] Can't get PHP extension to Load # [EMAIL PROTECTED] / 2007-01-30 12:09:44 -0500: > It loads a PHP extension called php_dblib.dll that replaces (the same > way ODBTP does) the php_mssql.dll. The problem is that on the > production machine, even though it is the same version of everything, it > refuses to load the php_dblib.dll. The only error it says is that the > "specified module could not be found". The DLL file is definitely in > extensions directory, and the path that the error message presents has > been triple checked to exist. use depends.exe to see which library php_dblib.dll depends on is missing on the production server. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Can't get PHP extension to Load
AHA! I have discovered the culprit, but am uncertain WHY it is the culprit. The production server as Microsoft.NET Framework 2.0 installed on it and the test server does not. I installed the 2.0 framework on the test server and BAM, the extension refused to load. I'll see if uninstalling it causes it to work again as I have a feeling that .NET 2.0 is not needed on the production machine. If so, though, is there a way around this? Aaron Smith[EMAIL PROTECTED] System Administrator (269) 337-7496 Kalamazoo College -Original Message- From: Aaron Smith Sent: Tuesday, January 30, 2007 4:58 PM To: php-general@lists.php.net Subject: RE: [PHP] Can't get PHP extension to Load Interesting. Running that comes up with 2 missing dependencies: MSJAVA.DLL (delay-load dependency) and MSVCR71.DLL (apparently a required dependency). However, running the SAME thing on the test server results in the same errors...but it works over there. I did a search for those two files on both servers and they both have the MSVCR71.dll file in the same location but neither of them have the MSJAVA.dll file. -------- Aaron Smith[EMAIL PROTECTED] System Administrator (269) 337-7496 Kalamazoo College -Original Message- From: Roman Neuhauser [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 30, 2007 4:00 PM To: Aaron Smith Cc: php-general@lists.php.net Subject: Re: [PHP] Can't get PHP extension to Load # [EMAIL PROTECTED] / 2007-01-30 12:09:44 -0500: > It loads a PHP extension called php_dblib.dll that replaces (the same > way ODBTP does) the php_mssql.dll. The problem is that on the > production machine, even though it is the same version of everything, it > refuses to load the php_dblib.dll. The only error it says is that the > "specified module could not be found". The DLL file is definitely in > extensions directory, and the path that the error message presents has > been triple checked to exist. use depends.exe to see which library php_dblib.dll depends on is missing on the production server. -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php