> CentOS > CentOS教程 >

CentOS下为PHP安装Tidy扩展

环境:
CentOS 6.5x64
PHP-5.4.26
 
# yum -y install libtidy-devel
# cd /usr/local/src/phpxxx/ext/imap
# /usr/local/php5/bin/phpize
#./configure --with-php-config=/usr/local/php5/bin/php-config 
............................................................
Installing shared extensions:     /usr/local/php5/lib/php/extensions/no-debug-zts-20090626/
 
# vi /etc/php.d/tidy.ini
extension=" /usr/local/php5/lib/php/extensions/no-debug-zts-20090626/tidy.so"
(责任编辑:IT)