Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have an existing installation of PHP5 on my RHEL server. It's managed via yum, so security updates are applied as usual.

I have need for HTML Tidy functionality, and was dismayed to learn that there (seemingly) is not a php5 extension available, and that (seemingly) the only way to get it is to compile php --with -tidy. Zapping my yum-managed php installation and compiling just to get tidy functionality seems excessive.

Are there other methods for getting HTML Tidy integrated with php5 that I'm not finding?


Edited with answer:

Thanks to cyberx86 (from comments below) for the suggestion of enabling EPEL and grabbing the php-tidy package there.

Steps:

[shell]# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm [shell]# yum install php53-tidy.x86_64

Done and thanks.

share|improve this question
    
If you don't have an objection to using the EPEL repository (fully compatible with RHEL), it supplies the php-tidy extension which is probably what you need. The current version is compatible with PHP 5.3.3 –  cyberx86 Dec 21 '11 at 18:13
    
Thanks cyberx, I'll give that a looking over. –  a coder Dec 21 '11 at 19:25
    
That did the trick - added answer to question. thanks. –  a coder Dec 21 '11 at 19:57
    
@cyberx86 - please post what you have as an actual answer so that coder can mark it as accepted –  Mark Henderson Dec 21 '11 at 20:01
add comment

1 Answer 1

If you don't have an objection to using the EPEL repository (fully compatible with RHEL), it supplies the php-tidy extension which is probably what you need. The current version is compatible with PHP 5.3.3

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.