Search code examples
ddev

Apache configuration for LDAP with DDEV


For a PHP Project I need authorisation via LDAP. I have enabled the module with creating a link in mods-enabled:

sudo ln -s /etc/apache2/mods-available/authnz_ldap.load /etc/apache2/mods-enabled/authnz_ldap.load

When restarting DDEV I get this error:

Failed to restart BuildCenter: web container failed: log=phpstatus FAILED, err=container /ddev-BuildCenter-web unhealthy: phpstatus FAILED

Calling the website with a browser show this error:

502: Unresponsive/broken ddev back-end site.

Any hints how to configure LDAP within DDEV?


Solution

  • Found the problem. The project was running with apache 2.2.22 and with ddev apache 2.4.25 is used. After removing 'AuthzLDAPAuthoritative' from the .htaccess file it works.