Cannot PREFIX/bin/apachectl -k start


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Cannot PREFIX/bin/apachectl -k start
# 1  
Old 04-26-2013
Cannot PREFIX/bin/apachectl -k start

I was trying to install apache using the following url

Compiling and Installing - Apache HTTP Server

when I try to start http it prompts me the following error
Code:
oracle@localhost httpd-2.4.4]$ su -c '/usr/local/apache2/bin/apachectl -k start'
Password: 
/usr/local/apache2/bin/httpd:  error while loading shared libraries: libexpat.so.0: cannot open shared  object file: No such file or directory

I did the following to find out whether the file is in the directory or not

Code:
[oracle@localhost httpd-2.4.4]$ ls -lrth  /usr/lib/libexpat.so
lrwxrwxrwx. 1 root root 17 Apr 26 14:25 /usr/lib/libexpat.so -> libexpat.so.0.5.0

so how should I resolve the above error?

thanks
# 2  
Old 04-26-2013
You shouldn't compile Apache yourself unless you have a specific need for a nonstandard configuration, or want a bugfix that's too new to be in the latest binary release. Using the binary installer and appropriate packages for your distribution tends to avoid these problems.

Please explain what you need.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

SunBlade 150 can't start openwin: /usr/openwin/bin/xinit: Server error.

Hi. I have a Microsystems SunBlade 150 shell# cat /etc/release Solaris 8 2/02 s28s_u7wos_08a SPARC shell# uname -a SunOS HOSTNAME 5.8 Generic_108528-14 sun4u sparc SUNW,Sun-Blade-100 shell# prtconf -F /pci@1f,0/SUNW,m64B@13:m640 When I join to the only account the server try to... (5 Replies)
Discussion started by: siegroup
5 Replies

2. Shell Programming and Scripting

Extract Uniq prefix from a start and end prefix

Dear All, assume i have a file with content: <Start>6000</Start> <Stop>7599</Stop> the output is: 6000 7000 7100 7200 7300 7400 7599 how should we use any awk, sed, perl can do this task, means to extract the uniq prefixes from the start and stop prefix. Thanks Jimmy (3 Replies)
Discussion started by: jimmy_y
3 Replies

3. Shell Programming and Scripting

Usage of #!/bin/sh vs #!/bin/bash shell scripts?

Some question about the usage of shell scripts: 1.) Are the commands of the base shell scripts a subset of bash commands? 2.) Assume I got a long, long script WITHOUT the first line. How can I find out if the script was originally designed für "sh" or "bash"? 3.) How can I check a given... (3 Replies)
Discussion started by: pstein
3 Replies

4. AIX

Redistribution bin required for AIX. j7r164redist.7.1.0.25.bin

Hi, I am planning to install a version of Informatica on my AIX box. It requires a specific java build in pap6470_27sr2-20141101_01(SR2). The current link for IBM 64-bit SDK for AIX®, JavaTM Technology Edition, Version 7 Release 1 has a more recent version in j7r164redist.7.1.0.75.bin. Is... (4 Replies)
Discussion started by: meetpraveens
4 Replies

5. OS X (Apple)

When to use /Users/m/bin instead of /usr/local/bin (& whats the diff?)?

Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself. But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies

6. UNIX for Dummies Questions & Answers

Not able to start apachectl

Hi While trying to start apachectl in an IBM HTTP server installed in a Sol 10 box,i am facing the following error: root: ./apachectl start ./apachectl: /opt/IBMHTTPD/bin/httpd: cannot execute ./apachectl start: httpd could not be started @ /opt/IBMHTTPD/bin I checked the... (3 Replies)
Discussion started by: Hari_Ganesh
3 Replies

7. UNIX for Dummies Questions & Answers

fuser: difference with bin/sh and bin/ksh shell script

Hi, I have a problem I don't understand with fuser. I launch a simple shell script mysleep.sh: I launch the command fuser -fu mysleep.sh but fuser doesn't return anything excepted: mysleep: Then I modify my script switching from #!/bin/sh to #!/bin/ksh I launch the command fuser -fu... (4 Replies)
Discussion started by: Peuj
4 Replies

8. Web Development

apachectl status output

I get an error when I run the command apachectl status or apachectl fullstatus here's the error: Unfortunately, your browser is not supported by Sitebuilder. Please use Internet Explorer 5.5 or later, or Mozilla. Already tried to install lynx and enabled ExtendedStatus to On... (1 Reply)
Discussion started by: suspect
1 Replies

9. IP Networking

apachectl status

hello- I'm trying to setup a webserver using apache 2.0.53. Can't seem to figure out why my local site isn't coming up. I've tried the following: ping -a localhost localhost (127.0.0.1) is alive httpd -S syntax ok apachectl configtest syntax ok netstat -an|grep :80|grep LISTEN... (4 Replies)
Discussion started by: ECBROWN
4 Replies

10. Shell Programming and Scripting

./rc.d/apache.sh apachectl startssl script

i made a cert with a passwd, and i'm curious if can i start apache with apachectl startssl with 1 line command. Or do i have to write a startscript that catches password promt and inserts passwd?really to tell i'm to bad in sh scripting,and i think someone of you done it already, may i have a... (3 Replies)
Discussion started by: hachik
3 Replies
Login or Register to Ask a Question