LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 06-12-2015, 12:38 PM   #1
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
aix6 / 64-bit / Apache / libphp5 / dlopen problem


It's a bit difficult to describe the problem, but I'll try:

o the problem doesn't occur in 5.x or 7.x, only in 6.x
o the problem doesn't occur in 32-bit only in 64-bit
o the problem occurs after Apache has loaded (dlopen'd) and unloaded (dlcose'd) every modules (including libphp5.so), then again tries to load mod_access.so (which is the first one in the list), but fails with errno=8 (ENOEXEC)
o there is no problem without php
o the error message doesn't make much sense:
Code:
dso.c: dlopen(/usr/local/libexec64/apache2/libphp5.so,0x10002) returned 0 errno=8: Exec format error
Cannot load /usr/local/libexec64/apache /mod_access_compat.so into server:
rtld: 0712-001 Symbol access_compat_module was referenced from module /usr/local/libexec64/apache/mod_access_compat.so(),
but a runtime definition of the symbol was not found.
rtld: 0712-002 fatal error: exiting.
o httpd version 2.4.7, php version 5.4.6, Oracle client version 10.2 (oci8 support in PHP)

Last edited by NevemTeve; 06-12-2015 at 12:43 PM.
 
Old 06-12-2015, 02:35 PM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862

Original Poster
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Here is there solution^W workaround:

1. build Apache
2. build PHP
3. build Apache, but make httpd executable depend on /usr/local/libexec64/libphp5.so
4. then dlopening/dlcosing libphp5.so will cause nobody harm; no one alarm.
 
Old 02-25-2017, 10:16 AM   #3
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862

Original Poster
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
This problem might be related with this: AIX relink warning
 
Old 04-04-2018, 01:31 PM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862

Original Poster
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Note: I've just found out that this workaround negatively affects Apache's restart/graceful_restart features: when Apache restarts, zend's memory-management might get confused. Also this hack became unnecessary when I fixed the Oracle client's export problem.
 
Old 06-05-2018, 03:15 AM   #5
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862

Original Poster
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
(I keep bloggig, hope it doesn't disturb you) No, I have this problem again. The difference that there have been a restart (due to power failure). So the problem might depend on the global state of loaded shared objects.
Code:
# genkld -d | egrep '(libphp|libclntsh)'
 900000003686000  1594ebc  9000000048e0e5f   17ac31 /usr/local/libexec64/apache2/libphp7.so
 900000006b2f000  25ef86e  9001000a0d00af0   25c0b4 /opt/lib64/libclntsh.so.11

Last edited by NevemTeve; 06-05-2018 at 03:16 AM.
 
  


Reply

Tags
64-bit, aix6, apache, dlopen, php



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 9 broke my Apache setup -- libphp5.so won't load philwynk Linux - Software 5 09-25-2008 06:38 AM
Error in PHP 5.0.5 and Apache 1.3.34 - Cannot load libphp5.so jun_tuko Linux - Software 7 01-05-2008 11:12 PM
Apache problems with libphp5.so Jubalint Linux - Software 1 04-22-2007 11:54 PM
error while trying to launch apache server- permission prob with libphp5.so rlee923 Linux - Newbie 2 03-11-2007 04:41 AM
Apache Server error, libphp5.so crillegs Linux - Software 3 05-23-2006 01:56 PM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 09:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration