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 LTS (Lucid Lynx) 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? How do I fix this?

share|improve this question
    
How did you install your apache2? With an apt-get? The dependencies should be resolved at installation time. Did you change the config etc.? If it's a possibility for you, purging and reinstalling apache2 would be my first guess. –  Marin Althuis Jun 9 at 9:43

2 Answers 2

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

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

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.