sourceguardian安装

问答中心分类: PHPsourceguardian安装
oneinstack 提问 3月 前

PHP模块sourceguardian安装

1 问题
oneinstack 回答 3月 前

sourceguardian下载

64位操作系统:

wget https://www.sourceguardian.com/loaders/download/loaders.linux-x86_64.tar.gz

 32位操作系统:

wget https://www.sourceguardian.com/loaders/download/loaders.linux-i386.tar.gz

sourceguardian配置

tar xzvf loaders.linux-x86_64.tar.gz

选择指定PHP版本文件放入php extension dir位置,如我安装的php版本为5.3

cp ixed.5.3.lin `/usr/local/php/bin/php-config --extension-dir`

PHP加载模块

cat > /usr/local/php/etc/php.d/01-sourceguardian.ini << EOF
extension=ixed.5.3.lin
EOF

重启php

service php-fpm restart

验证sourceguardian模块成功安装

php --ri sourceguardian

SourceGuardian

SourceGuardian Loader Support => enabled
SourceGuardian Loader Version => 11.2
SourceGuardian Loader Build Number => 0x00000019
phpSHIELD Support => enabled

Directive => Local Value => Master Value
sourceguardian.restrict_unencoded => 0 => 0