Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I keep getting half hourly email messages from the root cron relating to php startup error messages:

Cron <root@hostname> [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm

Message content (snipped)
php5: /usr/local/lib/ no version information available (required by php5)

Running php -v from a prompt reveals the same:
php -v
php: /usr/local/lib/ no version information available (required by php)
php: /usr/local/lib/ no version information available (required by php)
PHP 5.3.3-1ubuntu9.9 with Suhosin-Patch (cli) (built: Feb 9 2012 06:37:37)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

I did an "apt-get upgrade php5-cli", hence the recent build date.

phpinfo() shows that it is using 2.7.7 of libxml2

Doing a locate on reveals:


Server info:


FYI, 64bit install on RS cloud. Linux cfpbbh1 #8 SMP Mon Sep 20 15:54:33 UTC 2010 x86_64 GNU/Linux

This has me baffled, and google isn't helping too much, nothing ubuntu specific at least, lots of cpanel/directadmin options but these arent installed...

There is one other question on this forum with the same problem, with the solution being to have symlinks pointing from the old to the new version... but it seems there already is:

/usr/lib# ll | grep libxml
lrwxrwxrwx 1 root root 16 Feb 14 11:54 ->
lrwxrwxrwx 1 root root 16 Feb 14 12:25 ->
-rw-r--r-- 1 root root 1364056 Jan 18 22:28

Anyone care to help? Assistance much appreciated... If someone could tag this with libxml2 it may help others.

share|improve this question
Possibly related: – Lekensteyn Feb 20 '12 at 11:53
Hi... yes... I read the solution there, however as I said in the question it seems there are symlinks in /usr/lib dir already – hdotnet Feb 20 '12 at 13:05

I had the same problem. I ended up in your situation, when I needed a newer version of libxml than the one packaged with my release. I installed it manually, so I ended up with two installations of libxml. What I did was removing all libxml libraries from /usr/local/lib, leaving only packaged libraries in /usr/lib. PHP warnings then disappeared.

Thus you should be able to resolve simply by

sudo rm /usr/local/lib/*

You might want to backup* before deletion. Hope this helps someone.

share|improve this answer

Your Answer


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.