Enable LDAP support in Docker image of Wordpress
First of all you should prepare image with LDAP support as described in Docker image of Wordpress with LDAP support or why do not use ldap plugin before you created container...
But if you already have a container there is also possibility to enable LDAP support:
Run bash inside container:
docker exec -it wordpress_wordpress_1 /bin/bash
then exec:
apt-get update apt-get install -y libldap2-dev docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ docker-php-ext-install ldap rm -rf /var/lib/apt/lists/* apt-get purge -y --auto-remove libldap2-dev /etc/init.d/apache2 restart
the last line will terminate container. If you have set power policy to restart always there is nothing you have to do. Alternatively you can run container again
docker start wordpress_wordpress_1
Kommentare
Bitte melden Sie sich Logan oder registrieren Sie sich um kommentieren zu können.