Start Apache - Error libexpat.so.0: open failed

Posted on 2006-04-07
Medium Priority
Last Modified: 2013-12-27
I have downloaded compiled pkg of  Apache version 1.3 from Sunfreeware site. Extract the apache package and also installed openssl and expat package as mentioned on sunfreeware site for Apache 1.3.27 version.

I did set up my PATH and LD_LIBRARY_PATH

When I try to start apache, I am getting an error as follow.

/apachectl start
ld.so.1: /usr/local/apache/bin/httpd: fatal: libexpat.so.0: open failed: No such file or directory
./apachectl start: httpd could not be started

Please help !

Question by:nrpatel
  • 2

Accepted Solution

bpeterse earned 500 total points
ID: 16445659
Looks like it was compiled with diff locations than yours - find / -name 'libexpat.so.0'  will tell you where the missing file is.  Chances are good it's not in your LD_LIBRARY_PATH yet.  Put the path to the missing file in and try again.

Expert Comment

ID: 16562431
did you compile apache from source or install from dist. binaries?


Expert Comment

ID: 16562444
nevermind....doh, it helps when you actuall read the whole question :) 'bpeterse' is spot on, check and/or add that file to you LDpath

Expert Comment

ID: 16818014
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: bpeterse

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

EE Cleanup Volunteer

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

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

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month12 days, 19 hours left to enroll

578 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