yum install libtidy libtidy-devel -y
cd /www/server/php/73/src/ext/tidy
/www/server/php/73/bin/phpize
./configure --with-php-config=/www/server/php/73/bin/php-config
make && make install
# 解开php.ini的tidy扩展注释, 或执行以下命令添加配置
echo "extension = tidy.so" >> /www/server/php/73/etc/php.ini
1 评论