1

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?

1
  • 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. Jun 9, 2015 at 9:43

2 Answers 2

1

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.

1
  • 1
    It says zlib1g is already the newest version.
    – big_p
    Oct 1, 2013 at 7:16
1

Reinstalling libxml2 solved my problem:

apt-get purge libxml2
apt-get install libxml2

After that I needed to install php5 again.

1
  • In my case there were a lot of system dependencies dependent on this package, include gnome desktop. So I would not purge this package.
    – Cheetaiean
    Aug 11, 2022 at 18:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .