Toastie 8a98720997 streamlined structure and added links | 2 years ago | |
---|---|---|
.. | ||
Dockerfile | 2 years ago | |
README.md | 2 years ago | |
custom.ini | 2 years ago |
To enable the LDAP php extension
run docker compose build
with Dockerfile in ./build/ add following extra line in docker-compose.yml:
services:
wordpress:
build: ./build/
To list installed php externsions, run:
docker exec -it <container_name> sh -c 'php -r "print_r(get_loaded_extensions());"'
ldapsearch
from the Debian package ldap-utils can be used to run queries for testing, e.g.:
ldapsearch -x -H 'ldap://ldap.example.com' -b 'cn=users,dc=example,dc=com' 'cn=johndoe'
To add you custom php configuration, put config.ini in ./conf/ and
add following extra line in docker-compose.yml
:
services:
wordpress:
volumes:
- ./conf/custom.ini:/usr/local/etc/php/conf.d/custom.ini:ro