var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
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?
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.
Move the extension to your PHP extensions folder and add the it to php.ini.
This should work ...
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?
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.
That appears to have done the trick.
Thank you very much for your time and help.
No problem. Glad I could help.
By mixmox in forum Hosting Security and Technology
Last Post: 04-18-2009, 06:55 AM
By AS-Richard in forum Hosting Security and Technology
Last Post: 05-09-2005, 02:17 PM
By SeanCrux in forum Shared Hosting Offers
Last Post: 07-12-2004, 08:34 PM
By electron33 in forum Dedicated Server
Last Post: 04-01-2004, 12:17 PM
By Jim_UK in forum Dedicated Server
Last Post: 02-26-2004, 02:30 AM