HTML Tidy on linux under XAMPP

Installing tidy on PHP5 under linux is pain. The manual says  “compile with –with-tidy”, but it is not really happening.

Finally I made it work on my fedora (using XAMPP) by this method:

# Install libtidy

yum -y install tidy

# Download PHP 5 source

# Unpack the source

tar xvzf php-5.3.0.tar.gz

# Configure tidy for installed php5 API

cd php-5.3.0/ext/tidy


# Stay at the same folder, Configure & Compile the source

./configure --with-php-config=/opt/lampp/bin/php-config --with-tidy

make clean    <-- Without this the compile builds a bad module for some reason


make install

# Install module into php.ini - Add:: extension=""

vi /opt/lampp/etc/php.ini

References: LAMP: php5-tidy doesn’t exist! 给AndLinux下面的xampp装tidy模块的经验 (Chinese)


3 thoughts on “HTML Tidy on linux under XAMPP”

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s