Enabled PHP Ldap; Apache no longer starts.
Posted by: imkindofanidiot (---.telekenex.com)
Date: January 17, 2012 10:57PM

Went to the menu, clicked the LDAP button to enable it

Apache no longer starts

Looked at php.ini in both locations; still commented out. Manually removed ; to enable

Apache still does not start

Click the menu, look, shows LDAP enabled in PHP, but when I try to disable it via a menu I see:

Could not execute menu item (internal error)
[Exception] Could not perform service action:
The requested control is not valid for this service.


Please assist..

Options: ReplyQuote
Re: Enabled PHP Ldap; Apache no longer starts.
Posted by: imkindofanidiot (---.telekenex.com)
Date: January 17, 2012 11:18PM

As an update; I rebooted the system running wamp

Immediately @ startup had a fatal error with the aestan system tray / kernel32.dll

Tried launching it manually-

php-win.exe - Unable to locate component
This application has failed to start because php5.dll was not found. Re-installing the application may fix this problem.


PHP Startup: Unable to load the dynamic library 'f:/wamp/bin/php/php5.3.8/ext/php_ldap.dll" - the specificed module could not be found

Options: ReplyQuote
Re: Enabled PHP Ldap; Apache no longer starts.
Posted by: imkindofanidiot (---.telekenex.com)
Date: January 17, 2012 11:32PM

Updated; manually disabled the ldap extension in

\bin\php\php5.3.8\php.ini
\bin\apache\Apache2.2.21\bin\php.ini

Webserver is back up; but not really useful without ldap support

Options: ReplyQuote
Re: Enabled PHP Ldap; Apache no longer starts.
Posted by: imkindofanidiot (---.telekenex.com)
Date: January 18, 2012 07:12PM

Resolved Issue - Switched to XAMPP..

Options: ReplyQuote
Re: Enabled PHP Ldap; Apache no longer starts.
Posted by: ktomasc (57.66.70.---)
Date: January 19, 2012 01:46PM

Same problem here!

Is there another fix for this besides using XAMPP or installing the previous version of WAMP?

Options: ReplyQuote
Re: Enabled PHP Ldap; Apache no longer starts.
Posted by: stevenmartin99 (---.251.255.15.threembb.ie)
Date: January 19, 2012 04:31PM

Are u using 32 or 64 but wamp .

Neither of u have supplied much details

Error logs anyone?

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Enabled PHP Ldap; Apache no longer starts.
Posted by: imkindofanidiot (---.hsd1.ca.comcast.net)
Date: January 20, 2012 05:48AM

Not sure where to get error logs from as the error logs in apache are only access logs.

32 bit; win server 2003.

Works fine, until you enable ldap. Then the apache service freezes when starting [or something; services mmc just says starting].

Options: ReplyQuote
Re: Enabled PHP Ldap; Apache no longer starts.
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: January 20, 2012 06:15AM

No there should be error_log, access log and php_error logs

can you check the build version of the extension? if you right click > properties> details>

is it for the correct version of wamp?

and what version of wamp are you using?

this is not a common error so im surprized to be seeing it all of a sudden

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Enabled PHP Ldap; Apache no longer starts.
Posted by: ktomasc (57.66.70.---)
Date: January 20, 2012 08:41AM

Also, using Windows Server 2003 R2 32bit.

When enabling LDAP from the tray icon, the tray icon changes to orange but then just stays like that. At that stage, when looking at the php.ini file, the LDAP entry does not have the ";" in front of it anymore, but when you look at it by going to PHP -> php extensions from the system tray, there is no tick mark next to php_ldap.

When trying to stop all services, an error message pops up that says:
"Could not execute menu item (internal error). [Exception] Could not perform service action: The request control is not valid for this service"

I don't have a php_error log file, and the access.log, apache_error.log and the mysql.log files don't have any errors in them relating to this problem.

I'm using Wampserver 2.2A P132 bit, which I downloaded towards the end of December 2011.

The LDAP extension is version 5.3.8.0



Edited 1 time(s). Last edit at 01/20/2012 08:42AM by ktomasc.

Options: ReplyQuote
Re: Enabled PHP Ldap; Apache no longer starts.
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: January 20, 2012 11:09AM

iv confirmed it working on Vista and 7 with this version of WampServer.

Can you please get Dependency Walker > [www.dependencywalker.com]

right click on the php_ldap.dll in c:\wamp\bin\php\php5.3.8\ext and press view dependiences

tell me which have the yellow warning sign


you dont need to mention

PHP5TS.DLL
LIBSASL.DLL
MSVCR90.DLL

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Enabled PHP Ldap; Apache no longer starts.
Posted by: ktomasc (57.66.70.---)
Date: January 20, 2012 12:11PM

The other dependencies are:

IESHIMS.dll
WER.dll

The program shows the below error in the consol:
"Error: At least one required implicit or forwarded dependency was not found.
Warning: At least one delay-load dependency module was not found."



Edited 2 time(s). Last edit at 01/20/2012 12:15PM by ktomasc.

Options: ReplyQuote
Re: Enabled PHP Ldap; Apache no longer starts.
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: January 20, 2012 12:29PM

can you paste a screen shot of Denpendacy Walker so i can see the file tree with php_ldap.dll at the top.

i cant see why it would need these files.. they shouldnt be even on the tree

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Enabled PHP Ldap; Apache no longer starts.
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: January 20, 2012 12:39PM

[bugs.php.net]

actaully seems to be an issue with the ieshims alright.. its not needed. but its checked for.. so the file must exist .. silly smiling smiley


here it is [www.dll-world.com]

extract and place it @ c:\program files\Internet Explorer\IEShims.dll

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 1 time(s). Last edit at 01/20/2012 12:45PM by stevenmartin99.

Options: ReplyQuote
Re: Enabled PHP Ldap; Apache no longer starts.
Posted by: ktomasc (57.66.70.---)
Date: January 20, 2012 01:52PM

I have now placed that ieshims.dll file in the IE folder, still didnt work, pasted it in the system32 folder, then that dependency error went away but an ncrypt one appeared.

I downloaded that, then a bcrypt one appeared (marker yellow). After I also downloaded that and put it into the system32 folder, only PHP5TS.DLL and LIBSASL.DLL still remained yellow, but the server still "crashes" when enabling ldap. sad smiley

How can paste a screen print here?



Edited 1 time(s). Last edit at 01/20/2012 01:53PM by ktomasc.

Options: ReplyQuote
Re: Enabled PHP Ldap; Apache no longer starts.
Posted by: keez (---.publicdebt.treas.gov)
Date: January 26, 2012 06:26PM

Looks like I have a different issue. Started a new thread.



Edited 1 time(s). Last edit at 01/26/2012 06:28PM by keez.

Options: ReplyQuote
Re: Enabled PHP Ldap; Apache no longer starts.
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: January 26, 2012 06:29PM

They need to be in the system32 folder too...

wamp should have copied them on install...


wait sorry -not all shoudl be -- ill check the list

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]



Edited 1 time(s). Last edit at 01/26/2012 06:30PM by stevenmartin99.

Options: ReplyQuote
Re: Enabled PHP Ldap; Apache no longer starts.
Posted by: stevenmartin99 (---.b-ras1.srl.dublin.eircom.net)
Date: January 26, 2012 06:33PM

in dependancy walker you can turn on full paths.. it will tell you where they should be found

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.