Travis Smith

Serving. Teaching. Leading. Innovating.

  • Home
  • About
  • Leadership
  • Development
  • Contact
  • CV
  • Tools
    • JavaScript Object Playground

October 29, 2014 by Travis Smith Leave a Comment

Enable PHP LDAP in Windows Azure

Enable PHP LDAP in Windows Azure

By default, Windows PHP does not include PHP LDAP (php_ldap.dll) as part of their configuration.
Windows Azure PHP Extensions

And when you check phpinfo(), you will see the PHP ldap extension only under CURL.
Windows Azure Default LDAP Setting

To enable PHP LDAP (php_ldap.dll) in Windows Azure, you must follow these steps:

  1. Download a non-thread safe V9 version of PHP from php.net (PHP 5.4.x) and locate the php_ldap.dll from the etc folder (or download php_ldap.dll, php 5.4.34 PHP LDAP php_ldap.dll).
  2. Create new folder call bin at the root of your Azure website.
    Upload php_ldap.dll
  3. Upload the PHP LDAP file (php_ldap.dll) to the newly created bin folder.
  4. In Azure, add a new App Setting
    • key: PHP_EXTENSIONS
    • value: /home/bin/php_ldap.dll

    PHP_EXTENSIONS php_ldap.dll App Setting

  5. Click Save.

Now you will see in phpinfo() that LDAP is supported.php_ldap.dll in Azure

Filed Under: Development, WordPress Tagged With: Azure, PHP, LDAP, Active Directory

Connect with Me

  • Github
  • Google+
  • Linkedin
  • Twitter

Recent Posts

  • Caching Problems with GraphQL at the Edge May 16, 2018
  • Resource Hinting with JavaScript September 29, 2017
  • How to Install Groovy September 28, 2017
  • You’ve Gotta Love Millennials by Micah Tyler April 10, 2017
  • Every Meeting Ever April 3, 2017
  • Home
  • About
  • CV
  • Resume
  • Privacy Policy
  • Contact

Copyright © 2021 · WP Smith on Genesis Framework · WordPress · Log in