1 Answers
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
Please login or Register to submit your answer