【代码加密】安装PHP源码加密模块

说明:PHP源码加密模块,可以支持单个PHP文件或者整个目录中PHP文件加密(其他类型的文件只是单纯拷贝),详细见工具包下面README.md
 
一、下载解压
$ wget https://github.com/liexusong/php-beast/archive/master.zip
$ unzip master.zip
$ cd php-beast-master

  

 
二、修改加密key
$ vim header.c

  

 
三、扩展编译
$ phpize
$ ./configure
$ sudo make && make install

  

 
编译好之后修改php.ini配置文件, 加入配置项: extension=beast.so, 重启php-fpm
 
 
 
 
得意时做事,失意时读书
原文地址:https://www.cnblogs.com/lanse1993/p/13570259.html