This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: [1]
1
PHP / Re: LDAP support
« on: August 28, 2019, 12:55:35 PM »
Little late to the party, but this is how I installed LDAP support in php.
Open SSH connection to the server and do the following:
So basically this downloads and compiles php 7.2.17, but you can probably do this with any version of php. I found this to be the easiest way to install ldap.
Open SSH connection to the server and do the following:
Code: [Select]
mkdir -p /usr/local/php-7-2
cd /usr/local/php-7-2
wget https://www.php.net/distributions/php-7.2.17.tar.gz
tar zxvf php-7.2.17.tar.gz
cd php-7.2.17
./configure --with-config-file-path=/usr/local/php --with-config-file-scan-dir=/usr/local/php/php.d --with-zlib=/usr --enable-mbstring --enable-zip --enable-bcmath --enable-pcntl --enable-ftp --enable-exif --enable-calendar --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-tidy --with-curl --with-iconv --with-gmp --with-pspell --with-gd --with-jpeg-dir=/usr --with-freetype-dir=/usr --with-png-dir=/usr --enable-gd-jis-conv --with-zlib-dir=/usr --with-xpm-dir=/usr --with-openssl --with-pdo-mysql=mysqlnd --with-gettext=/usr --with-bz2=/usr --with-recode=/usr --with-mysqli --enable-soap --enable-phar --with-xsl --with-xmlrpc --with-kerberos --enable-posix --enable-sockets --with-pcre-regex --with-libdir=lib64 --with-mysql-sock=/var/lib/mysql/mysql.sock --enable-intl --with-icu-dir=/usr --with-ldap
make && make install
So basically this downloads and compiles php 7.2.17, but you can probably do this with any version of php. I found this to be the easiest way to install ldap.
Pages: [1]