Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm getting the following error when trying to start apache on an ubuntu 10.04 vserver:

apache2: Syntax error on line 204 of /etc/apache2/apache2.conf: Syntax 
error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load 
/usr/lib/apache2/modules/libphp5.so into server: /lib/libz.so.1: version 
`ZLIB_1.2.3.3' not found (required by /usr/lib/x86_64-linux-gnu/libxml2.so.2)

What does this mean? Can somebody help to fix this?

Thanks

share|improve this question
add comment

2 Answers

It means that apache is trying to Load the PHP5 module and failing. PHP5 depends on the libxml2 library, which in turns depends on zlib (v1.2.3.3), but it was unable to find libz. Make sure you have zlib installed, on my Ubuntu system I would run:

sudo apt-get install zlib1g

Or if you're not using PHP5 run

sudo a2dismod php5

to disable that module.

share|improve this answer
    
It says zlib1g is already the newest version. –  buggy1985 Oct 1 '13 at 7:16
add comment

Reinstalling libxml2 solved my problem:

apt-get purge libxml2
apt-get install libxml2

After that I needed to install php5 again.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.