If you want to add php-tidy PHP extension support on your RedHat/centOS server, here is how you can install php-tidy.
Login to your server as root via SSH and run following commands
yum install php-tidy service httpd restart
The method works on following Linux OS:
CentOS, RedHat, Fedora, Scientific Linux