Solved

Configure Oracle Apache

Posted on 2004-10-06
16
4,104 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

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 100 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 150 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to ensure a smooth transition to Let's Encrypt SSL Cert? 2 99
Setting up a WAMP server... 7 71
Web Reply Form - PHP with Upload 4 86
phpmyadmin memory error 55 92
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Suggested Courses

732 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