LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices



Reply
 
Search this Thread
Old 06-29-2007, 01:09 AM   #1
wanna13e
Member
 
Registered: Apr 2006
Posts: 45

Rep: Reputation: 15
Apache 2.0.47 Error when try to run the command httpd -S


Hi All Guru,

I encountered the error below when trying to run the command httpd -S to check my configuration. Both my webservers is running on RHEL4 64bit and using IBM HTTP Server 2.0.47. Hope anyone can give me an idea here.

./httpd -S
Segmentation fault

Another server give me a different error.

./httpd -S
./httpd: error while loading shared libraries: libaprutil-0.so.0: cannot open shared object file: No such file or directory


Thanks alot in advance.
 
Old 06-29-2007, 03:55 PM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Install apr-util and give that a shot.

-twantrd
 
Old 07-01-2007, 09:43 PM   #3
wanna13e
Member
 
Registered: Apr 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Hi twantrd,

Thanks alot for your response. I did below but still encounter the error.

up2date apr-util

Fetching Obsoletes list for channel: rhel-x86_64-as-4...

Fetching rpm headers...

Name Version Rel
----------------------------------------------------------


The following packages you requested are already updated:
apr-util
[root@iyp-web3 bin]# ./httpd -S
./httpd: error while loading shared libraries: libaprutil-0.so.0: cannot open shared object file: No such file or directory
 
Old 07-02-2007, 12:38 AM   #4
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Quote:
./httpd: error while loading shared libraries: libaprutil-0.so.0: cannot open shared object file: No such file or directory
Look under /lib. The library probably does exist but under a different name. Do you see a libaprutil-?.so.?. If the library exists as a different filename, make a symlink (ie. libaprutil-0.so.0 -> /lib/the_name_of_the_library_that_exists_here). Give that a shot.

If you don't know how to do this, then run this command and paste it to us.
Code:
ls -l /lib/libapr*
-twantrd

Last edited by twantrd; 07-02-2007 at 12:40 AM.
 
Old 07-02-2007, 02:44 AM   #5
wanna13e
Member
 
Registered: Apr 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Hi twantrd,

Thanks alot for your response. Below is a continuous ssh session. Please see below.

./httpd -S
./httpd: error while loading shared libraries: libaprutil-0.so.0: cannot open shared object file: No such file or directory
[root@iyp-web3 bin]# cd ../lib
[root@iyp-web3 lib]# ls -lrt libaprutil-0.so.0
lrwxrwxrwx 1 root root 37 Jun 21 10:18 libaprutil-0.so.0 -> /opt/IBMIHS/lib/libaprutil-0.so.0.9.4
 
Old 07-02-2007, 05:05 AM   #6
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
And the real file does exist right? If so, then it seems that it's not looking in the right path? Can you paste us the output of the below command? Thanks.

Code:
ldd httpd
-twantrd
 
Old 07-02-2007, 05:18 AM   #7
wanna13e
Member
 
Registered: Apr 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Hi twantrd,

Thanks alot for your response. Below is the output.

ldd httpd
linux-gate.so.1 => (0xffffe000)
libaprutil-0.so.0 => not found
libexpat.so.0 => /usr/lib/libexpat.so.0 (0x00323000)
libapr-0.so.0 => /usr/lib/libapr-0.so.0 (0xf7fb2000)
libm.so.6 => /lib/tls/libm.so.6 (0x00cde000)
libnsl.so.1 => /lib/libnsl.so.1 (0xf7f9c000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00279000)
libdl.so.2 => /lib/libdl.so.2 (0x00cd8000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00101000)
libc.so.6 => /lib/tls/libc.so.6 (0x00baa000)
librt.so.1 => /lib/tls/librt.so.1 (0xf7f87000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0xf7f59000)
/lib/ld-linux.so.2 (0x00b90000)
 
Old 07-02-2007, 02:48 PM   #8
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Hmm, what happens if you do a
Code:
cp -a /opt/IBMIHS/lib/libaprutil-0.so.0.9.4 /usr/lib/libaprutil-0.so.0
??

-twantrd
 
Old 07-02-2007, 09:42 PM   #9
wanna13e
Member
 
Registered: Apr 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Hi twantrd,

Thanks alot for your response and kind help. Now I get a new error.

[root@iyp-web3 lib]# cp -a /opt/IBMIHS/lib/libaprutil-0.so.0.9.4 /usr/lib/libaprutil-0.so.0
[root@iyp-web3 lib]# cd ../bin/
[root@iyp-web3 bin]# ./httpd -S
Segmentation fault
[root@iyp-web3 bin]# ps -ef | grep httpd
root 4170 1 0 04:03 ? 00:00:00 /opt/IBMIHS/bin/httpd -d /opt/IBMIHS -k start
nobody 4595 4170 0 04:03 ? 00:00:10 /opt/IBMIHS/bin/httpd -d /opt/IBMIHS -k start
nobody 4597 4170 0 04:03 ? 00:00:10 /opt/IBMIHS/bin/httpd -d /opt/IBMIHS -k start
nobody 4599 4170 0 04:03 ? 00:00:10 /opt/IBMIHS/bin/httpd -d /opt/IBMIHS -k start
root 7458 7434 0 09:39 pts/1 00:00:00 grep httpd

I did google this but no help found.
 
Old 07-03-2007, 08:17 PM   #10
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
You get a segfault but apache is running. Hmmm. Is apache working (ie. port 80 open, does it serve pages)??

Also, what happens if you do a ./httpd start instead of ./httpd -S.

-twantrd
 
Old 07-05-2007, 02:00 AM   #11
wanna13e
Member
 
Registered: Apr 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Hi twantrd,

Below is the error I get when I try to use 'httpd start'.

[root@iyp-web1 bin]# ./httpd start
Usage: ./httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-S]
Options:
-D name : define a name for use in <IfDefine name> directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings)
-S : a synonym for -t -D DUMP_VHOSTS
-t : run syntax check for config files
[root@iyp-web1 bin]# ./httpd -t
Segmentation fault
[root@iyp-web1 bin]# ps -ef | grep httpd
root 4072 1 0 04:02 ? 00:00:00 /opt/IBMIHS/bin/httpd -d /opt/IBMIHS -k start
nobody 7532 4072 0 09:34 ? 00:00:20 /opt/IBMIHS/bin/httpd -d /opt/IBMIHS -k start
nobody 7567 4072 0 09:40 ? 00:00:19 /opt/IBMIHS/bin/httpd -d /opt/IBMIHS -k start
nobody 7709 4072 0 10:00 ? 00:00:17 /opt/IBMIHS/bin/httpd -d /opt/IBMIHS -k start
nobody 9431 4072 0 13:59 ? 00:00:00 /opt/IBMIHS/bin/httpd -d /opt/IBMIHS -k start
root 9462 9413 0 13:59 pts/1 00:00:00 grep httpd
 
Old 07-05-2007, 03:48 PM   #12
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
You didn't answer my first question . Is it serving pages? The process appears to be running...

-twantrd
 
Old 07-05-2007, 09:23 PM   #13
wanna13e
Member
 
Registered: Apr 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Hi twantrd,

Yes. It's serving the pages for www.yellowpages.com.sg but not www.asiacni.com.sg
 
Old 07-06-2007, 12:53 AM   #14
wanna13e
Member
 
Registered: Apr 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Hi twantrd,

Just an update here, I'm using iptables to loadbalance another IP here to load the website www.asiacni.com.sg. Another website on this IP is working fine but not www.asiacni.com.sg

/sbin/iptables -t nat -A PREROUTING -d 165.21.60.68 -j REDIRECT
 
Old 07-06-2007, 02:31 AM   #15
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Make a new subject thread for this as your original question (httpd not running) is now resolved. That way, your problem gets exposed to more people who can assist you better.

-twantrd
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP Apache Command not there, and some httpd.conf opt's badgerbox76 Linux - Newbie 9 12-08-2005 05:48 PM
signal Bus error (7) - apache/ httpd da_kidd_er Linux - Networking 1 07-08-2005 11:51 PM
configuration of httpd.conf to run apache server adityabhat2 Linux - Newbie 2 02-13-2005 01:10 PM
httpd: Unclean shutdown of previous Apache run mfitzpat Linux - Software 1 04-14-2004 03:08 PM
Apache httpd error haribon Linux - Newbie 8 02-06-2004 03:57 AM


All times are GMT -5. The time now is 03:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration