خرید بک لینک

Hello,

To all whom find this topic:

If you want to add an php extension, and try to use this: https://help.directadmin.com/item.php?id=252
The variable: "ap2" stands for "apache 2", while if you use suphp, or fpm you need to change it respectively to suphp and fpm.... took me a while to figure out *sigh*

For IMAP: http://forum.directadmin.com/showthread.php?t=8271 works...

however when trying to install LDAP I fail miserably.

https://help.directadmin.com/item.php?id=341
should give an answer, buteeh... not working for me I'm afraid

So, the situation:
I first installed:
yum -y install openldap-devel cyrus-sasl-devel

but, due to a bug in PHP (or so), it cant find the so files. One solution would be to set --libdir=/usr/lib64, but that could cause problems. Thus, more commenly found is that people make a symlink from the lib64 to the lib dir.
ln -s /usr/lib64/libldap.so /usr/lib/libldap.so
ln -s /usr/lib64/libldap_r.so /usr/lib/libldap_r.so

Finally one needs to add the --with-ldap to the config file, and voila, it should all work

/usr/local/directadmin/custombuild/custom/fpm/configure.php71

Code:

#!/bin/sh
./configure 
        --prefix=/usr/local/php71 
        --program-suffix=71 
        --enable-fpm 
        --with-fpm-systemd 
        --with-config-file-scan-dir=/usr/local/php71/lib/php.conf.d 
        --with-curl=/usr/local/lib 
        --with-gd 
        --enable-gd-native-ttf 
        --with-gettext 
        --with-jpeg-dir=/usr/local/lib 
        --with-freetype-dir=/usr/local/lib 
        --with-libxml-dir=/usr/local/lib 
        --with-kerberos 
        --with-openssl --with-imap=/usr/local/imap-2007f --with-imap-ssl 
        --with-mcrypt 
        --with-mhash 
        --with-mysql-sock=/var/lib/mysql/mysql.sock 
        --with-mysqli=mysqlnd 
        --with-pcre-regex=/usr/local 
        --with-pdo-mysql=mysqlnd 
        --with-pear 
        --with-png-dir=/usr/local/lib 
        --with-xsl 
        --with-zlib 
        --with-zlib-dir=/usr/local/lib 
        --with-xmlrpc 
        --with-ldap=/usr 
        --with-ldap-sasl=/usr 
        --with-imap=/usr/local/imap-2007f 
        --with-imap-ssl 
        --enable-zip 
        --with-iconv=/usr/local 
        --enable-bcmath 
        --enable-calendar 
        --enable-ftp 
        --enable-sockets 
        --enable-soap 
        --enable-mbstring 
        --with-icu-dir=/usr/local/icu 
        --enable-intl
not really...
I tried

--with-ldap=/usr
--with-ldap-sasl=/usr
and
--with-ldap=/usr/lib64
--with-ldap-sasl=/usr/lib64
and
--with-ldap=/usr/local/lib
--with-ldap-sasl=/usr/local/lib

but what is right? I have honestly no idea what is means... So... PHP tells us the "dir" is the LDAP base install dir (http://php.net/manual/en/ldap.installation.php). So, where is the LDAP base install dir???
> rpm -ql ldap
package ldap is not installed

right...

> whereis ldap
ldap: /usr/include/ldap.h /usr/share/man/man3/ldap.3.gz

I'm stuck :| Anyone who can aid me on this quest?

برچسب: نویسنده: ایمان اصلاحی تاريخ: پنجشنبه 25 خرداد 1396 ساعت: 18:01

صفحه بندی