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

Hi,

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
--with-oci8=/u01/app/oracle/product/10203
--prefix /usr/local
--with-apxs2=/usr/local/apache2/bin/apxs
--with-mssql=/usr/local
make
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
Seydina FallIT ingineerAsked:
Who is Participating?
 
joep1978Commented:
I wish I could! :)  I can't close it, to do that I would need you to click Accept on one of my posts
0
 
joep1978Commented:
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
0
 
Seydina FallIT ingineerAuthor Commented:
Thanks

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
        /platform/SUNW,Sun-Fire-V445/lib/libc_psr.so.1
        /platform/SUNW,Sun-Fire-V445/lib/libmd_psr.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 ?
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
joep1978Commented:
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
0
 
Seydina FallIT ingineerAuthor Commented:
Thanks,

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

Thank you
0
 
joep1978Commented:
No problem.  Can this now be closed?
0
 
Seydina FallIT ingineerAuthor Commented:
Yes You can

Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.