Hello Ayappan
Thanks for your fast reply, Iam not familiar in this.
Libpath is this
root:/home/root:] echo $LIBPATH
/opt/IBM/ldap/V6.3/lib:/usr/lib:$LIBPATH
As you said it is linked to ibmldap I guess. How to link to openldap lib?
root:/usr/lib:] rpm -qi php_64-fpm
Name : php_64-fpm
Version : 5.6.32
Release : 1
Architecture: ppc
Install Date: Fri Nov 13 15:14:20 2020
Group : Development/Languages
Size : 13359143
License : PHP and Zend and BSD
Signature : (none)
Source RPM : php_64-5.6.32-1.src.rpm
Build Date : Sat Dec 16 11:06:31 2017
Build Host : aix51.perzl.org
Relocations : (not relocatable)
URL :
http://www.php.net/Summary : PHP FastCGI Process Manager
Description :
PHP-FPM (FastCGI Process Manager) is an alternative PHP FastCGI
implementation with some additional features useful for sites of
any size, especially busier sites.
------------------------------
Alwin Alex
------------------------------
Original Message:
Sent: Thu January 28, 2021 10:55 AM
From: Ayappan P
Subject: PHP-FPM Couldn't start
The rpms are not from AIX Toolbox. ( rpm -qi php_64-fpm will show the source )
Check the dynamic linkings of php-fpm binary . ( dump -X64 -Hov /opt/freeware/sbin/php-fpm )
From the error, it looks like it needs to link to openldap library but linking to IBM ldap.
Also check you have LIBPATH exported.
------------------------------
Ayappan P
Original Message:
Sent: Thu January 28, 2021 09:59 AM
From: Alwin Alex
Subject: PHP-FPM Couldn't start
Hello
I have issue to start PHP-FPM and I get the following error
root:/opt/freeware/sbin:] php-fpm start
Could not load program php-fpm:
Dependent module /opt/IBM/ldap/V6.3/lib/libldap.a(libldap-2.4.so.2) could not be loaded.
File /opt/IBM/ldap/V6.3/lib/libldap.a is not an
archive or the file could not be read properly.
System error: Exec format error
If you need additional info
root:/opt/freeware/sbin:] rpm -aq | grep php
php_64-fpm-5.6.32-1.ppc
php_64-common-5.6.32-1.ppc
php_64-cli-5.6.32-1.ppc
root:/opt/freeware/sbin:] rpm -qf /opt/freeware/lib/libldap.a
openldap-2.4.44-0.1.ppc
root:/opt/freeware/sbin:] rpm -qa | grep -i -e ldap | sort
openldap-2.4.44-0.1.ppc
root:/opt/freeware/sbin:] rpm -q --whatrequires openldap
php_64-fpm-5.6.32-1.ppc
php_64-cli-5.6.32-1.ppc
curl-7.72.0-1.ppc
Kind Regards
Alwin
------------------------------
Alwin Alex
------------------------------