UniService does not load LDAP

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).

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.