[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2295
  • Last Modified:

Cannot load /usr/local/apache2/modules/libphp5.so into server: ld.so.1: httpd: fatal: relocation error:


I really need a help please. Evryone is welcome i am getting a probleme since three days.

I am installing PHP 2.2.9 on SUN Solaris 10 with apache 2.2.9 and perl 5.8.8.
Everything seems to be good unless PHP Configuration.
I did those commands below :
./configure --with-oracle=/u01/app/product/10203
--prefix /usr/local
make install

I did'nt have any fatal error message until the end.
But I get error this messge error when trying to start apache :

httpd: Syntax error on line 55 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: ld.so.1: httpd: fatal: relocation error: file /usr/local/apache2/modules/libphp5.so: symbol xmlTextReaderSetup: referenced symbol not found

I've installed libxml2 yet.
Can you help me to find ?

Thanks for tour reply
  • 4
  • 3
1 Solution
Look for any info about libxml2 during the configure and the make process - something must be going wrong here as it doesn't seem to have linked correctly.  If it still doesn't work try downloading libxml2 and specifying --with-libxml-dir in the configure
papfalAuthor Commented:

You're right my libxml configuration was pretty good unless my PATH. Look at the ldd command :
[/c102/users/<users>] ldd /usr/local/apache2/modules/libphp5.so
        librt.so.1 =>    /usr/lib//librt.so.1
        libsybdb.so.5 =>         /usr/local/lib/libsybdb.so.5
        libresolv.so.2 =>        /usr/lib//libresolv.so.2
        libm.so.2 =>     /usr/lib//libm.so.2
        libnsl.so.1 =>   /usr/lib//libnsl.so.1
        libsocket.so.1 =>        /usr/lib//libsocket.so.1
        libz.so =>       /usr/local/lib/libz.so
        libkstat.so.1 =>         /usr/lib//libkstat.so.1
        libgen.so.1 =>   /usr/lib//libgen.so.1
        libdl.so.1 =>    /usr/lib//libdl.so.1
        libsched.so.1 =>         /usr/lib//libsched.so.1
        libclntsh.so.10.1 =>     /u01/app/oracle/product/10203//lib32/libclntsh.so.10.1
        libxml2.so.2 =>  /usr/local/lib/libxml2.so.2
        libiconv.so.2 =>         /usr/local/lib/libiconv.so.2
        libc.so.1 =>     /usr/lib//libc.so.1
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        libaio.so.1 =>   /usr/lib//libaio.so.1
        libmd.so.1 =>    /usr/lib//libmd.so.1
        libmp.so.2 =>    /usr/lib//libmp.so.2
        libscf.so.1 =>   /usr/lib//libscf.so.1
        libnnz10.so =>   /u01/app/oracle/product/10203/lib32/libnnz10.so
        libm.so.1 =>     /usr/lib//libm.so.1
        libpthread.so.1 =>       /usr/lib//libpthread.so.1
        libdoor.so.1 =>  /usr/lib//libdoor.so.1
        libuutil.so.1 =>         /usr/lib//libuutil.so.1

I had the libxml in two directories /usr/local/lib/libxml2.so.2 and /usr/lib/libxml2.so.2.
Apache was looking at the wrong one. So I rename the library under usr/lib and evrything run ok.
Thank you for your reply.

But I m having another problem. I cant bring my php pages in the browser when I do http://<server name>. I have apache running ok and only directories displayed. Have you any idea where is my problem ?
Do the PHP pages work when you surf to them directly?

If so you need to define index.php as a valid directory index in your Apache config:-

DirectoryIndex index.php

If not, exactly what happens when you surf directly to a PHP file
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

papfalAuthor Commented:

Actually, the name of my index.php was wrong. Everything is ok now.

Thank you
No problem.  Can this now be closed?
papfalAuthor Commented:
Yes You can

I wish I could! :)  I can't close it, to do that I would need you to click Accept on one of my posts

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now