PHP - установка модуля htscanner для использования php value в режиме CGI/FCGI

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск

Доступная цена


PHP - установка модуля htscanner на CentOS для использования php value в режиме CGI/FCGI

# wget http://pecl.php.net/get/htscanner-0.9.0.tgz
# rpm -qa | grep autoconf
# tar -xf htscanner-0.9.0.tgz
# cd htscanner-0.9.0
# phpize
# ./configure
# make
# php -i | grep no-de
# cp /root/htscanner-0.9.0/modules/htscanner.so /usr/lib/php/extensions/no-debug-non-zts-20090626/
# make install
# vi /usr/local/lib/php.ini
[htscanner]
extension="htscanner.so"
; The configuration file htscanner needs to scan for php_* directives
config_file=".htaccess"
; The fallback docroot when htscanner can't determine the current docroot
default_docroot="/"
default_ttl=300
; Stop when an error occured in RINIT (no document root, cannot get path_translated,...)
stop_on_error = 0


# /etc/init.d/httpd restart


Проверяем через phpinfo:

htscanner
htscanner support	enabled
extension version	0.9.1-dev 
CVS Id	$Id: htscanner.c,v 1.25 2009/03/04 00:40:16 pajoye Exp $
Directive	Local Value	Master Value
htscanner.config_file	.htaccess	.htaccess
htscanner.default_docroot	/	/
htscanner.default_ttl	300	300
htscanner.stop_on_error	0	0



Screenshot htscanner.png