php安装sg11扩展,Centos下安装SG11加密扩展插件

SG11全称是SourceGuardian,其中11指的是大版本号,官方地址:https://www.sourceguardian.com/loaders.html

当前使用Centos7系统,php添加sg11扩展,sg11提供了所有php版本的扩展,只需要在压缩包中找到对应的版本

sg11下载

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

sg11扩展不需要编译,直接开箱即用,将压缩包中对应的版本上传到php的extension_dir目录中

例如:如果是php7.1的版本,将ixed.7.1.lin上传到/usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/

然后在php.ini中添加extension=ixed.7.1.lin即可

最后记得重启php生效

验证sg11扩展

php --ri sourceguardian

1

php--risourceguardian

SourceGuardian

SourceGuardian Loader Support => enabled

SourceGuardian Loader Version => 11.3.4

SourceGuardian Loader Build Number => 0x0000001D

Directive => Local Value => Master Value

sourceguardian.restrict_unencoded => 0 => 0

通过phpinfo可看到SourceGuardian

4a18ecff2246c7a12593d607469add98.gif

4a18ecff2246c7a12593d607469add98.gif

~微信打赏~

分享到:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值