Forum


Replies: 3   Views: 460
Php8 tidy and amazon linux 2
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by jgregor3  · 18-12-2021 - 19:13

Recently upgraded both our PHPDocx12 and PHP to version 8. However, I'm am STRUGGLING trying to find a solution to install PHP-Tidy extension. Using AWS EC2 - Amazon Linux 2. Installed everything else with no problem, but the PHP-Tidy does not exist. Any suggestions on how to get this installed. 

Posted by admin  · 18-12-2021 - 20:24

Hello,

If Amazon Linux 2 or any other distribution don't include the php-tidy package for PHP8 (maybe Amazon will add it in the near future, maybe you can contact them about this missing package), we recommend using an external repository (or compile and use PHP from source).

In the case of Amazon Linux 2 you can use Remi's repository (https://rpms.remirepo.net/). Please check the following documentation, that install PHP 8, including Tidy on Amazon Linux 2:

https://techviewleo.com/install-php-8-on-amazon-linux/

Also please note that HTML methods included in phpdocx have the following option: forceNotTidy . Although using PHP Tidy is recommended, this option can be used when Tidy can't be installed. Using this option requires adding a correct HTML/CSS to be transformed, if PHP Tidy is not available the HTML/CSS can't be cleaned/repaired automatically.

Regards.

Posted by jgregor3  · 18-12-2021 - 22:30

Thanks much! I'll give it a shot

Posted by jgregor3  · 19-12-2021 - 04:04

the ForceNoTidy worked like a charm.