Solved

Configure Oracle Apache

Posted on 2004-10-06
16
4,060 Views
Last Modified: 2012-06-22
Running Oracle on 64 bit AMD machine using Red Hat 3 ES.
The apache configuration step failed.
When i go the the apache directory and try starting apache i get:

[oracle@dwrep bin]$ id
uid=503(oracle) gid=503(oinstall) groups=503(oinstall),504(dba)
[oracle@dwrep bin]$ ./apachectl start
/u01/app/oracle/product/9.2.0/Apache/Apache/bin/httpd: error while loading share d libraries: libdb.so.2: cannot open shared object file: No such file or directo ry
./apachectl start: httpd could not be started
[oracle@dwrep bin]$ ./apachectl configtest
/u01/app/oracle/product/9.2.0/Apache/Apache/bin/httpd: error while loading shared libraries: libdb.so.2: cannot open shared object file: No such file or directory
[oracle@dwrep bin]$
[root@dwrep root]# find / -name libdb.so.2 -print
/usr/lib64/libdb.so.2

How do i get rid of this problem?

0
Comment
Question by:xoxomos
  • 8
  • 6
16 Comments
 
LVL 15

Expert Comment

by:periwinkle
Comment Utility
Why are you starting apache as user oracle?  Try Su'ing to root, and retry starting.
0
 

Author Comment

by:xoxomos
Comment Utility
/u01/app/oracle/product/9.2.0/Apache/Apache/bin
[root@dwrep bin]# ls
ab             apxs       htpasswd    log_server_status  stopJServ.sh
apachectl      dbmmanage  httpd       rotatelogs         tcpset.sh
apachectl.tmp  htdigest   logresolve  startJServ.sh
[root@dwrep bin]# ./apachectl start
/u01/app/oracle/product/9.2.0/Apache/Apache/bin/httpd: error while loading share
d libraries: libdb.so.2: cannot open shared object file: No such file or directo
ry
./apachectl start: httpd could not be started


0
 
LVL 15

Expert Comment

by:periwinkle
Comment Utility
Hmmm - when you installed apache, did you specify that path to the libraries?  Is that library in your own path?
0
 

Author Comment

by:xoxomos
Comment Utility
No and  no.  I did put it in the LD_LIBRARYPATH but not PATH.  I thought the PATH was for executables, but I'll try it in the morning.
0
 
LVL 15

Expert Comment

by:periwinkle
Comment Utility
Sorry, the library path, not the path -let me see if I can find the syntax for you.
0
 
LVL 4

Assisted Solution

by:kalosi
kalosi earned 100 total points
Comment Utility
Either add the following line into your /etd/ld.so.conf

/usr/lib64

and run ldconfig afterwards or export the path via LD_LIBRARY_PATH

running ldd $ORACLE_HOME/Apache/Apache/bin/httpd should return something like this (you will have the 64bit libraries)

[oracle@rhel bin]$ ldd httpd
        /etc/libcwait.so => /etc/libcwait.so (0xb75e7000)
        libdms2.so => /opt/oracle/10.1.0as/lib/libdms2.so (0xb75cf000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb75b5000)
        libdb.so.2 => /usr/lib/libdb.so.2 (0xb75a6000)
        libnsl.so.1 => /lib/libnsl.so.1 (0xb7591000)
        libm.so.6 => /lib/tls/libm.so.6 (0xb756f000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0xb7541000)
        libdl.so.2 => /lib/libdl.so.2 (0xb753e000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7407000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb75eb000)
[oracle@rhel bin]$
0
 
LVL 15

Accepted Solution

by:
periwinkle earned 150 total points
Comment Utility
Sorry - it's taken me a bit of time to come back to you.

The changes should be made when running configure - use:

./configure --libdir=/usr/lib64

and then run:

make clean
make
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Author Comment

by:xoxomos
Comment Utility
Which directory should  i be in to run the ./configure.
I don't see any configure except for source files.
0
 
LVL 15

Expert Comment

by:periwinkle
Comment Utility
That's correct - you'll need to recompile apache to look for files in that directory.
0
 
LVL 15

Expert Comment

by:periwinkle
Comment Utility
(correction: that should read 'library files' not 'files')
0
 

Author Comment

by:xoxomos
Comment Utility
But I don't find a configure executable.  There is no place that I see that I could enter ./configure unless I go into a
/usr/src/redhat/BUILD/gcc............  Then there are a bunch of configures.
0
 
LVL 15

Expert Comment

by:periwinkle
Comment Utility
How did you build Apache?
0
 

Author Comment

by:xoxomos
Comment Utility
I did not build it.  Any Apache stuff was part of the .tar file from Oracle.  Probably is different from the actual Apache.
0
 
LVL 15

Expert Comment

by:periwinkle
Comment Utility
Hmmm- the problem is that your library is in a different directory than where it is expected to be.  That expectation is generally ruled by how it was compiled.

Did you try Kelosi's recommendation?  I suspect s/he meant /etc/ld.so.conf Instead of  /etd/ld.so.conf  if that helps.
0
 

Author Comment

by:xoxomos
Comment Utility
Yes.  Since posting this Oracle has released a 64 bit 10g server  for linux and this was just installed yesterday.  In 10g the Apache is not included and is a seperate install which I will be doing shortly.
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now