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(d ba)
[oracle@dwrep bin]$ ./apachectl start
/u01/app/oracle/product/9. 2.0/Apache /Apache/bi n/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/bi n/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?
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(d
[oracle@dwrep bin]$ ./apachectl start
/u01/app/oracle/product/9.
./apachectl start: httpd could not be started
[oracle@dwrep bin]$ ./apachectl configtest
/u01/app/oracle/product/9.
[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?
Why are you starting apache as user oracle? Try Su'ing to root, and retry starting.
ASKER
/u01/app/oracle/product/9. 2.0/Apache /Apache/bi n
[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/bi n/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
[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.
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Which directory should i be in to run the ./configure.
I don't see any configure except for source files.
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')
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.
/usr/src/redhat/BUILD/gcc.
How did you build Apache?
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.
Did you try Kelosi's recommendation? I suspect s/he meant /etc/ld.so.conf Instead of /etd/ld.so.conf if that helps.
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.