Apache 2 error on AIX 5.3

Here is the error output:
# /usr/local/apache2/bin/apachectl -k start
httpd: Syntax error on line 411 of /usr/local/apache2/conf/httpd.conf: Cannot lo
ad /usr/local/apache2/modules/libphp5.so into server: rtld: 0712-001 Symbol xmlT
extReaderSetup was referenced\n      from module /usr/local/apache2/modules/libp
hp5.so(), but a runtime definition\n      of the symbol was not found.

What does this output mean? I had apache and php installed and working properly.  I have not used it in a couple of months, but now I will.  Now all these errors keep arising! Any input?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

All this looks quite like you ported the apache installation to a new machine, or reinstalled AIX.

The message above points to a problem with 'libxml2'

Where is libxml2.a ? Should be in /usr/lib !

Please check!

Kerem ERSOYPresidentCommented:
When you find check if the version is 2.6.28 or higher. Becuase older versons are known not to export this symbol.
Try to find it in /opt/freeware/lib

Create a link like the one in our last case if it's there.
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

AIX25Author Commented:
AIX was at 5.3.7 at the time of the apache and php install.  Now I upgraded to 5.3.9, does that have anything to do with it?
Also, I have in /usr/lib but its linked  libxml2.a -> /usr/ccs/lib/libxml2.a.  Should I not have it linked, is that causing the issue?
Not sure what verison of apache was installed? Is there a command I can run?
Apache version check is done by httpd -v

But strange that libxml2 should be in /usr/ccs/lib!

Maybe the link is broken, i.e. /usr/ccs/lib/libxml2.a does not exist?

Anyway, check /opt/freeware/lib for libxml2, if it's there do

ln -sf /opt/freeware/lib/libxml2.a /usr/lib/libxml2a

Don't worry, we can revert that anytime, if needed.

Was libxml installed via rpm? Check with rpm -qa | grep libxml2

You should then also see the version.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
... typo

ln -sf /opt/freeware/lib/libxml2.a /usr/lib/libxml2.a
AIX25Author Commented:
libxml was not installed via rpm. It was installed using a .tar source.  Also, libxml was not under /opt/freeware/lib.  Should I uninstall the current libxml and reinstall it using an rpm source?  
I executed a find on libxml...output:
# find / -name libxml

Did this info help?  Also I ran httpd -v and I get ksh: httpd:  not found.
.tar source means you compiled it? This makes it even stranger that it should be in /usr/ccs...
1. You should run find / -name libxml\*  to find all relevant files, notably libxml2.a
2. Uninstalling (how?) and installing an rpm is a good idea.
3. Use /path/to/httpd -v
AIX25Author Commented:
1. Here is the oupt:
# find / -name libxml\*

2. If i install a most recent version of libxml rpm source, will that be the current active one being used? Will it ignore the .tar version of libxml?

3. Server version: Apache/2.2.10 (Unix)

Hopefully these outputs will help
Please, we are talking about libxml2!
What are those /usr/lib/lib/libxml2... pieces? Links, too?
Please repeat the find using
find / -name libxml2\* -ls
The rpm will go to /opt/freeware, and it will try to create some links in /usr/lib and /usr/bin, which creation will fail, as the links are already there.
Namely - /usr/lib/libxml2.a, /usr/bin/xmlcatalog and /usr/bin/xmllint
You should rename these three before installing rpm, so that the links can be created properly.
Kerem ERSOYPresidentCommented:

It seems that you're missig the correct libxml2. Ro remove the link to your libxml2a

then do this:

rpm -iv http://www.oss4aix.org/download/latest/aix53/libxml2-2.6.32-1.aix5.1.ppc.rpm

AIX25Author Commented:
woolmilkporc, sorry about the wrong output.  Here is the correct one:

# find / -name libxml2\* -ls
349184    1 drwxr-xr-x  3 root      system         256 Nov 13  2008 /usr/include
189669    1 drwxr-xr-x  3 root      system         256 Dec  5  2008 /usr/lib/inc
190049 5100 -rwxr-xr-x  1 root      system     5221381 Dec  5  2008 /usr/lib/lib
190050    1 -rwxr-xr-x  1 root      system         783 Dec  5  2008 /usr/lib/lib
  540    1 lrwxrwxrwx  1 bin       bin             22 Apr 16 17:33 /usr/lib/libx
ml2.a -> /usr/ccs/lib/libxml2.a
 3078    1 -rwxr-xr-x  1 root      system         779 Nov 13  2008 /usr/lib/libx
189758    1 drwxr-xr-x  4 root      system         256 Dec  5  2008 /usr/lib/sha
189779    1 drwxr-xr-x  2 root      system         256 Dec  5  2008 /usr/lib/sha
189780  328 -rw-r--r--  1 root      system      335119 Dec  5  2008 /usr/lib/sha
  502 20911 -r-xr-xr-x  1 bin       bin       21411932 Jan 10  2008 /usr/ccs/lib
349343    1 drwxr-xr-x  3 root      system         256 Nov 13  2008 /usr/share/d

What do you recommend to do? Remove libxml and reinstall rpm libxml.  Or is there a way around this problem to minimize my problem?
Kerem ERSOYPresidentCommented:
Yup I do. Otherwise you can not get yur apache run. Because it was compiled for these libraries not the ones you've installed.
AIX25Author Commented:
Thank you KeremE.  One final question, what is the command to check processes for which port is being used by what?
Kerem ERSOYPresidentCommented:
netstat -an
Kerem ERSOYPresidentCommented:
But it won't you what PID is connected to what port. for this you need to install lsof. You can find lsof either from your Toolbox CD or here:


AIX25Author Commented:
If I install lsof...then when I execute netstat -an it will give me a pid with it?
Hi again,
no, it's 'lsof -i' instead of 'netstat -a'
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.