Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Configure Oracle Apache

Posted on 2004-10-06
16
Medium Priority
?
4,169 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 6
16 Comments
 
LVL 15

Expert Comment

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

Author Comment

by:xoxomos
ID: 12243024
/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
ID: 12244320
Hmmm - when you installed apache, did you specify that path to the libraries?  Is that library in your own path?
0
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.

 

Author Comment

by:xoxomos
ID: 12245961
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
ID: 12247550
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 400 total points
ID: 12295281
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 600 total points
ID: 12468523
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
 

Author Comment

by:xoxomos
ID: 12468631
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
ID: 12468708
That's correct - you'll need to recompile apache to look for files in that directory.
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 12468710
(correction: that should read 'library files' not 'files')
0
 

Author Comment

by:xoxomos
ID: 12468885
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
ID: 12468976
How did you build Apache?
0
 

Author Comment

by:xoxomos
ID: 12469080
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
ID: 12470157
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
ID: 12708374
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month10 days, 23 hours left to enroll

618 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