PHP: Unable to load dynamic library suhosin.so in Debian sid

When you install php5 in Debian sid, you'll get following warning after updating.
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/suhosin.so' - /usr/lib/php5/20100525/suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0
And you will get a punch of annoying system mail. Orz

After searching on google, I got the answer from Debian bug mailing list.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=668739
The problem is the suhosin was obsoleted in Debian sid and it will be remove after system upgrading. But its configuration still exist in /etc/php5/conf.d.
shawn:/usr/lib/php5$ dpkg --list | grep php5 | more
ii  libapache2-mod-php5                5.4.4-14                  amd64        server-side, HTML-embedded scripting language (Apache 2 module)
ii  php5                               5.4.4-14                  all          server-side, HTML-embedded scripting language (metapackage)
ii  php5-cli                           5.4.4-14                  amd64        command-line interpreter for the php5 scripting language
ii  php5-common                        5.4.4-14                  amd64        Common files for packages built from the php5 source
ii  php5-gd                            5.4.4-14                  amd64        GD module for php5
rc  php5-suhosin                       0.9.32.1-1                amd64        advanced protection module for php5
All you have to do is run following command and then fix it.
shawn:~$ sudo dpkg -P php5-suhosin
(Reading database ... 36672 files and directories currently installed.)
Removing php5-suhosin ...
Purging configuration files for php5-suhosin ...
Processing triggers for libapache2-mod-php5 ...
Reloading web server config: apache2.
Enjoy it. :-)

Comments

Popular posts from this blog

How to construct a B+ tree with example

How to show only month and year fields in android Date-picker?

Visitor Counter Script Using PHP