Problème d'installation de tidy pour PHP5

Bonjour à tous,

Je viens de passer quelques longs instants à installer (ou tenter d’installer…) tidy sur ma 4.0 avec un apache2 et PHP5.

Voilà comment est-ce que j’ai procédé :

[code]# Install libtidy (needed for tidy2.0 compile)
apt-get -y install libtidy-0.99-0

Install GNU tools for compiling

apt-get -y install build-essential

Download tidy2.0 source (this can also be found in the PHP5 sourcecode, I just tarred it up to make this easier)

wget -c http://support.office-shadow.com/installer/tidy2.0.tar.gz

Unpack the source

tar xvzf tidy2.0.tar.gz

Configure tidy for installed php5 API

cd tidy
phpize

Configure & Compile the source

./configure

make clean <-- Without this the compile builds a bad module for some reason
make
make install[/code]

Puis au final j’ai ajouté l’extension dans le php.ini pour apache2 mais aussi dans celui pour cli (/etc/php5/cli/php.ini).

Suite à tout ça je redémarre apache et je lance mon script en php-cli qui me dit :

[code]PHP Warning: Module ‘tidy’ already loaded in Unknown on line 0

Fatal error: Call to undefined function tidy_setopt()[/code]

Donc je sors le extension=tidy.so de /etc/php5/cli/php.ini, je relance le script et là :

Pourtant, un php -i me renvoit ça :

srv1:/srv/...../# php -i|grep tidy PHP Warning: Module 'tidy' already loaded in Unknown on line 0 /etc/php5/cli/conf.d/tidy.ini tidy Extension Version => 2.0 ($Id: tidy.c,v 1.66.2.5 2006/01/01 12:50:16 sniper Exp $) tidy.clean_output => no value => no value tidy.default_config => no value => no value OLDPWD => /root/tidy _SERVER["OLDPWD"] => /root/tidy _ENV["OLDPWD"] => /root/tidy

Auriez-vous une idée de ce qu’il se passe ?

Merci d’avance et bon dimanche à tous !