ethereal1m Posted November 24, 2009 Share Posted November 24, 2009 Dear all, I just recently installed php 5.3.1 VC6 x86 Thread Safe on Windows XP. When I try to run php-win.exe, I got the following error: This application failed to start because ntwdblib.dll was not found. Re-installing the application may fix this problem. What is this error? I googled through and I found some bugs that related to missing ntwdblib.dll file. Is this a bug? How can I solve this? Best regards, ethereal1m Quote Link to comment https://forums.phpfreaks.com/topic/182758-after-installing-php-531-got-error-saying-ntwdblibdll-not-found/ Share on other sites More sharing options...
blueman378 Posted November 24, 2009 Share Posted November 24, 2009 ive also got the same error on windows 7 home premium, the error only appears if i try to start apache directly from httpd.exe if i attempt to start it from the apache monitor i get: "The requested operation has failed" however nothing is logged. I noticed that if i remove the php info from the httpd.conf ie: #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL PHPIniDir "C:/apacheserver/php/" LoadModule php5_module "C:/apacheserver/php/php5apache2_2.dll" #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL then apache will start, oddly enough i have to remove both lines, if i remove only the ini directive, or only the load_module directive i get the same error. Quote Link to comment https://forums.phpfreaks.com/topic/182758-after-installing-php-531-got-error-saying-ntwdblibdll-not-found/#findComment-964941 Share on other sites More sharing options...
ethereal1m Posted November 25, 2009 Author Share Posted November 25, 2009 Isn't that removing both directives disabling php on Apache? I just figure it out that the ntwdblib.dll is required for MSSQL, and I don't have it installed. I will try to reinstall this without the wizard and do it manually instead. Quote Link to comment https://forums.phpfreaks.com/topic/182758-after-installing-php-531-got-error-saying-ntwdblibdll-not-found/#findComment-965178 Share on other sites More sharing options...
blueman378 Posted November 25, 2009 Share Posted November 25, 2009 thats odd, i dont even have mysql installed.... Quote Link to comment https://forums.phpfreaks.com/topic/182758-after-installing-php-531-got-error-saying-ntwdblibdll-not-found/#findComment-965180 Share on other sites More sharing options...
ethereal1m Posted November 25, 2009 Author Share Posted November 25, 2009 Are you using MSSQL? or other dbase system? Quote Link to comment https://forums.phpfreaks.com/topic/182758-after-installing-php-531-got-error-saying-ntwdblibdll-not-found/#findComment-965182 Share on other sites More sharing options...
blueman378 Posted November 25, 2009 Share Posted November 25, 2009 nope, just installed apache 2.2, it works fine. Then went to install php but it causes apache to stop working, i should note however that i am running a 64bit OS, maybe thats my problem? Quote Link to comment https://forums.phpfreaks.com/topic/182758-after-installing-php-531-got-error-saying-ntwdblibdll-not-found/#findComment-965183 Share on other sites More sharing options...
ethereal1m Posted November 25, 2009 Author Share Posted November 25, 2009 I don't think this is something to do with your machine bit...since php versions doesn't distinguish it If you don't have MSSQL, modify your installation and remove MSSQL module..... Quote Link to comment https://forums.phpfreaks.com/topic/182758-after-installing-php-531-got-error-saying-ntwdblibdll-not-found/#findComment-965187 Share on other sites More sharing options...
blueman378 Posted November 25, 2009 Share Posted November 25, 2009 I dont think it is anything to do with an sql server, as it is those two php directives: PHPIniDir "C:/apacheserver/php/" LoadModule php5_module "C:/apacheserver/php/php5apache2_2.dll" that are causing it to crash. Quote Link to comment https://forums.phpfreaks.com/topic/182758-after-installing-php-531-got-error-saying-ntwdblibdll-not-found/#findComment-965188 Share on other sites More sharing options...
ethereal1m Posted November 25, 2009 Author Share Posted November 25, 2009 isn't that those directives required to load PHP to Apache? When you install php with MSSQL module included, it was looking for ntwdblib.dll. And since you don't have MSSQL installed, php cannot find it and complains. Quote Link to comment https://forums.phpfreaks.com/topic/182758-after-installing-php-531-got-error-saying-ntwdblibdll-not-found/#findComment-965191 Share on other sites More sharing options...
ethereal1m Posted November 25, 2009 Author Share Posted November 25, 2009 I finish installing php5 successfully and manually. Looks like congfig wizard makes me messing up with the configuration. @ blueman378 I just want to reiterate that those two lines are required to run PHP5 on Apache 2.2. You have to include those directives otherwise your Apache doesn't load PHP5 that you just installed. I suggest you do the manual installation by following this link http://www.php.net/manual/en/install.windows.manual.php Quote Link to comment https://forums.phpfreaks.com/topic/182758-after-installing-php-531-got-error-saying-ntwdblibdll-not-found/#findComment-965285 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.