Cannot load /usr/local/apache2/modules/ into server: 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/ into server: httpd: fatal: relocation error: file /usr/local/apache2/modules/ 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?
I wish I could! :)  I can't close it, to do that I would need you to click Accept on one of my posts
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
Seydina FallIT ingineerAuthor 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/ =>    /usr/lib// =>         /usr/local/lib/ =>        /usr/lib// =>     /usr/lib// =>   /usr/lib// =>        /usr/lib// =>       /usr/local/lib/ =>         /usr/lib// =>   /usr/lib// =>    /usr/lib// =>         /usr/lib// =>     /u01/app/oracle/product/10203//lib32/ =>  /usr/local/lib/ =>         /usr/local/lib/ =>     /usr/lib// =>         /usr/local/lib/ =>   /usr/lib// =>    /usr/lib// =>    /usr/lib// =>   /usr/lib// =>   /u01/app/oracle/product/10203/lib32/ =>     /usr/lib// =>       /usr/lib// =>  /usr/lib// =>         /usr/lib//

I had the libxml in two directories /usr/local/lib/ and /usr/lib/
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 ?
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.

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
Seydina FallIT ingineerAuthor Commented:

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

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

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.