Jump to content


UniService does not load LDAP

  • Please log in to reply
3 replies to this topic

#1 raikagezero



  • Member
  • Pip
  • 5 posts
  • Main OS: Other

Posted 09 July 2015 - 06:04 PM

Hi folks,


For some reason, Uniservice.exe does not run the service with LDAP enabled. Meanwhile, its' brother UniController.exe can start Apache with LDAP enabled. The same machine had apache2triad running as a 24/7 server and had php previously installed.


I have tried with switching the configuration files and UniService does follow UniController's configurations for php_production.ini and php_development.ini. However, Uniservice does not follow if UniController is configured for php 5.4 (we require php 5.6 and was only done for testing).


Any insight on this issue could help. Thanks in advance.

#2 dappa



  • Member
  • Pip
  • 1 posts
  • Main OS: Windows 7

Posted 09 July 2015 - 07:51 PM

I have the same issue, running UniServer Zero XI 11.6.1


I get the following error in the apache error.log file when running as a service:


PHP Warning:  PHP Startup: Unable to load dynamic library 'C:/UniServerZ/core/php54/extensions\\php_ldap.dll' - The specified module could not be found.\r\n in Unknown on line 0



This does NOT happen when running as an app.  2 questions,


1] Why the mixed slashes (fwd & backwd), and

2] Is this likely a system/windows path issue?


EDIT:  Resolved:




Copied three noted dlls into windows\system folder and issue went away, not ideal but usable.

#3 Ric


    Project Manager

  • Admin
  • PipPipPipPipPip
  • 1,535 posts
  • Gender:Male
  • Location:Cambridge,UK
  • Interests:Electronics
    Internet in general
    Open source projects
  • SourceForge IDmpgcan
  • Wiki ID: Ric
  • Main OS: Windows XP

Posted 10 July 2015 - 07:27 AM

Running as a service Apache cannot find libsasl.dll one solution is to copy this file to windows\system as mentioned above.

Problem with this solution, it is PHP version specific, preventing PHP switching. However Uniform server already has a mechanisum to resolve this type of issue.

First stop and unistall Apache service.
Edit Apache configuration file C:\UniServerZ\core\apache2\conf\httpd.conf
Locate the following sections and add the line shown:

<IfDefine php53>
  LoadFile ${US_ROOTF}/core/php53/libsasl.dll

<IfDefine php54>
  LoadFile ${US_ROOTF}/core/php54/libsasl.dll

<IfDefine php55>
  LoadFile ${US_ROOTF}/core/php55/libsasl.dll

<IfDefine php56>
  LoadFile ${US_ROOTF}/core/php56/libsasl.dll

<IfDefine php70>
  LoadFile ${US_ROOTF}/core/php70/libsasl.dll

Save the configuration file. Reinstall and run Apache service .
All the best

#4 raikagezero



  • Member
  • Pip
  • 5 posts
  • Main OS: Other

Posted 10 July 2015 - 09:15 AM

Another thing I noticed is that phpinfo stated that Apache's Environment PATH variable is that UniService could not dynamically add all of UniServer's core paths such as C:\UniServerZ\core\apache2\bin;C:\UniServerZ\core\mysql\bin;C:\UniServerZ\core\php56;C:\UniServerZ\core\openssl;C:\UniServerZ\core\msmtp; Meanwhile, UniController can add those to the PATH variable. Since this server is a production server, our temporary fix would be to manually add it to the system variables for now.


It's a resolution that doesn't allow php switching but in my case, I'd rather have the server up and running asap. I'll try to do the httpd.conf fix above later on next maintenance.

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users