Tidy support in PHP5

Discussion in 'HOWTO-Related Questions' started by jang, Oct 11, 2006.

  1. jang

    jang New Member

    I've followed the The Perfect Setup - Ubuntu 6.06 LTS Server (Dapper Drake).

    What I miss is tidy support in PHP?

    How do I enable PHP's Tidy extension. It's part of PHP5 isn't it?


  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can install the php5-tidy package with apt, if its available in ubuntu.
  3. falko

    falko Super Moderator ISPConfig Developer

    You can search for the package like this:
    apt-cache search tidy
  4. jang

    jang New Member

    There is no php5-Tidy package in Ubuntu server 64.

    I've installed Tidy using these instructions:

    # 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
    apt-get -y install libtidy-dev
    # 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
    # Configure & Compile the source
    make clean    <-- Without this the compile builds a bad module for some reason
    make install
    # Install module into php.ini 
    echo "extension=tidy.so" >> /etc/php5/apache2/php.ini;
    see: http://ubuntuforums.org/showthread.php?t=195636&highlight=php5+tidy



Share This Page