简体   繁体   English

如何在Ubuntu 14.04中使用PHP 7.0配置HTML Tidy

[英]How to configure HTML Tidy with PHP 7.0 in Ubuntu 14.04

Is anyone know how to configure HTML Tidy in Ubuntu 14.04? 有人知道如何在Ubuntu 14.04中配置HTML Tidy吗?

So that it can be use in PHP 7.0. 这样它就可以在PHP 7.0中使用。

What i've done is execute this command: 我所做的就是执行这个命令:

sudo apt-get install php7.0-tidy

but tidy still not work with php when i use tidy_parse_string() . 但是当我使用tidy_parse_string()时,整洁仍然无法使用php。

The PHP module needs to be enabled after installing. 安装后需要启用PHP模块。 After enabling, apache will need to be restarted to pick up the change. 启用后,需要重新启动apache以获取更改。 Therefore, the following two commands are necessary: 因此,需要以下两个命令:

$ sudo phpenmod tidy
$ sudo systemctl restart apache2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM