So hopefully with a little more info someone can help.
Here is my php path and version:
[root@D-APP03 /]# which php
/usr/local/bin/php
[root@D-APP03 /]# cd /usr/local/bin/
[root@D-APP03 bin]# ./php -v
PHP 5.6.25 (cli) (built: Aug 31 2016 14:34:48)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
And I tried a ./configure (from the path /tmp/php-build/php-5.6.25/ - not sure that's the right path) with the following:
./configure
--prefix=/opt/alt/php56/usr
--with-zlib
--enable-soap
--enable-exif
--with-config-file-path=/opt/alt/php56/usr/php
--with-config-file-scan-dir=/opt/alt/php56/usr/php/php.d
--enable-phar
--enable-bcmath
--enable-calendar
--with-curl
--with-iconv
--with-mysql
--with-mysqli
--with-mysql=mysqlnd
--with-mysqli=mysqlnd
--with-mcrypt
--with-gettext
--with-xsl
--with-xmlrpc
--with-pdo-mysql=mysqlnd
--enable-posix
--enable-ftp
--with-openssl
--enable-mbstring
--with-jpeg-dir=/usr
--with-freetype-dir=/usr
--with-kerberos
--with-xsl
--with-bz2
--enable-sockets
--enable-zip
--with-gd
--with-imap
--with-imap-ssl
--enable-sockets
--with-pcre-regex
--libdir=/usr/lib64
--with-mysql-sock=/var/lib/mysql/mysql.sock
--with-ldap
--with-libdir=lib64
Then I did a make, and make install from the same path.
Then restarted Apache
And a php -v still shows the same version that states "built: Aug 31 2016 14:34:48"
And php -m lists all the modules, but LDAP is not in the list.
What am I doing wrong?
Thanks!
Steve