Link to home
Start Free TrialLog in
Avatar of xoxomos
xoxomos

asked on

Configure Oracle Apache

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?

Avatar of periwinkle
periwinkle
Flag of United States of America image

Why are you starting apache as user oracle?  Try Su'ing to root, and retry starting.
Avatar of xoxomos
xoxomos

ASKER

/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


Hmmm - when you installed apache, did you specify that path to the libraries?  Is that library in your own path?
Avatar of xoxomos

ASKER

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.
Sorry, the library path, not the path -let me see if I can find the syntax for you.
SOLUTION
Avatar of kalosi
kalosi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of xoxomos

ASKER

Which directory should  i be in to run the ./configure.
I don't see any configure except for source files.
That's correct - you'll need to recompile apache to look for files in that directory.
(correction: that should read 'library files' not 'files')
Avatar of xoxomos

ASKER

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.
How did you build Apache?
Avatar of xoxomos

ASKER

I did not build it.  Any Apache stuff was part of the .tar file from Oracle.  Probably is different from the actual Apache.
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.
Avatar of xoxomos

ASKER

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.