?
Solved

Apache error when restarting httpd

Posted on 2003-03-24
3
Medium Priority
?
331 Views
Last Modified: 2010-03-04
Hi
I got this message when I try to restart the httpd daemon:
Syntax error on line 207 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: libz.so: open failed: No such file or directory
./apachectl start: httpd could not be started

Anyone know why and should I just touch the libz.so file or do I have to get a copy somewhere else. I am able to comment out the line 207 and started my httpd without any problem.

thanks
0
Comment
Question by:wilfredt_99
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 2

Accepted Solution

by:
linxit earned 100 total points
ID: 8203591
I assume from the file paths that you've compiled apache & php from source.

I guess that in the php configure, you added
--with-zlib or --with-zlib=/somepath (if it couldn't find it, configure would have failed). Another possibility is
--with-gd, which also requires zlib. Again, AFAIK, configure would fail if it can't find it.

Try locate libz*, if it doesn't exist you could always download the source from http://www.gzip.org/zlib/

If you do that, make sure /usr/local/lib is in your /etc/ld.so.conf and run /sbin/ldconfig after installing.

Andy

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

752 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