Results 1 to 6 of 6
  1. #1

    php-tidy for PHP 5.2.10 on CentOS/RHES 3


    Maybe I've read in the wrong area that Tidy 1.x is for PHP 4, and there's supposed to be a Tidy 2.x for PHP 5... but I cannot find Tidy 2.x anywhere.

    I've been able to find php-tidy instructions for PHP 4, but cannot find any for PHP 5.

    I've seen examples of installing php-tidy via yum, but on RHES 3/CentOS 3, there's no php-tidy in the operating system repository.

    Does anyone have any instructions, examples of installing, etc. php-tidy for PHP 5.2.10 on RedHat 3/CentOS 3?

    Thank you.

  2. #2
    I believe that php-tidy as RPM package is only available from RHEL/Centos 4 and up.

    Tidy 2.x is included with PHP source code. Either download src.rpm package for 5.2.10 or the tar.gz source.

    Install libtidty and libtidy devel

    Unpack the source and change to the ext/tidy directory.

    #make clean
    #make install

    Move the extension to your PHP extensions folder and add the it to php.ini.

    This should work ...

  3. #3

    This is an excellent start -- THANK YOU.


    On the configure I run into a warning and error:

    configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.

    checking for TIDY support... yes, shared
    configure: error: Cannot find libtidy

    1. Do I need to worry about the warning? If, yes, how do I fix it?

    2. Where can I find libtidy for RedHat / CentOS 3?

    Thank you.
    Peter M. Abraham
    LinkedIn Profile

  4. #4
    You're welcome.

    1. Not sure about the warning. I would ignore it for now.

    2. libtidy is only available by CVS. Here are the instructions :

    Another option is to obtain tidy src.rpm package for RHEL5, unpack and retrieve the tar.gz from there (tidy-20070615cvs.tar.gz). You would have to unpack it in a CentOS/RHEL 5 machine to unpack as RPM version is not compatible.

    CVS is the best option.

  5. #5

    That appears to have done the trick.

    Thank you very much for your time and help.

  6. #6
    No problem. Glad I could help.

Similar Threads

  1. what is tidy ?
    By mixmox in forum Hosting Security and Technology
    Replies: 7
    Last Post: 04-18-2009, 06:55 AM
  2. Plesk 7.5 + RHES: Several domains just died..
    By AS-Richard in forum Hosting Security and Technology
    Replies: 1
    Last Post: 05-09-2005, 02:17 PM
  3. Replies: 20
    Last Post: 07-12-2004, 08:34 PM
  4. Rhes 3.0
    By electron33 in forum Dedicated Server
    Replies: 23
    Last Post: 04-01-2004, 12:17 PM
  5. Dual Xeon + RHES
    By Jim_UK in forum Dedicated Server
    Replies: 4
    Last Post: 02-26-2004, 02:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts