php 源码安装 php_screw_plus 扩展

php 源码安装 php_screw_plus 扩展

1、下载php_screw_plus源码到本地

git clone https://git.oschina.net/splot/php-screw-plus.git

2、更新 zlib-develop 和 gcc 编译器

yum -y install zlib-devel gcc

3、编译 php_screw_plus

/usr/bin/phpize
./configure --with-php-config=/usr/bin/php-config
#没报错就继续
make && make install

#编译加密程序
cd tools
make
cp screw /usr/bin

4、使用

加密:
screw 目录或单文件,
screw /root/www/projectxxx

解密:
screw 目录或单文件 -d

你可能感兴趣的:(php 源码安装 php_screw_plus 扩展)