Install HTML Tidy at Centos 8/Directadmin

Requirements:
dnf install libtidy libtidy-devel

1.
To start customizing the compilation parameters, first we need to create a custom compilation file:
cd /usr/local/directadmin/custombuild
mkdir -p custom/php
cp -fp “configure/php/configure.php74” “custom/php/configure.php74”

2.
Open the file:
/usr/local/directadmin/custombuild/custom/php/configure.php74

3.
Add –with-tidy line to the end of the custom/php/configure.php74 file, and make sure the \ character exists at the end of all lines except the last one. The \ character tells the configure line to loop to the next line, making the line easier to read. Without the \ character to trigger the wrap, the next line is incorrectly read as a separate command.

4.
Build PHP:
./build php n

5.
Restart Apache and if necessary, PHP-FPM:
service httpd restart
service php-fpm74 restart

Resources:
https://www.php.net/manual/en/tidy.installation.php
https://docs.directadmin.com/webservices/php/php-extensions.html#add-a-custom-module-to-php-with-custombuild

CentOS 8, DirectAdmin


    Vincent Verloop

    Ervaren ICT Professional met een bewezen geschiedenis van werken in de IT- en dienstensector. Bekwaam in OS X, Search Engine Optimization (SEO), PHP, WordPress en Domain Name System (DNS). Sterke media- en communicatieprofessional met een diploma MBO niveau 4 gericht op ICT-beheer / ICT-beheerder. Volg Vincent Verloop op Twitter.

    Leave a Reply

    Your email address will not be published. Required fields are marked *