发布于 2016-05-16 15:20:14 | 1094 次阅读 | 评论: 0 | 来源: PHPERZ
SourceGuardian PHP加密软件
SourceGuardian 是一个PHP的编码器,可以对的PHP源代码进行编码,加密,混淆和许可的软件,可以用来保护你的php代码.
创建临时目录
First create a temporary folder "loader" at /usr/src/:
mkdir /usr/src/loader cd /usr/src/loader
下载扩展
Download the loader that meets your OS from the SourceGuardian website.
wget http://www.sourceguardian.com/loaders/download/loaders.linux-x86_64.tar.gz
解压缩
Extract the file:
tar xzf loader.tar.gz
复制文件到extension_dir目录下
Copy the file that matches your PHP version to the "extension_dir" of your PHP configuration:
cp ixed.5.3.lin /usr/lib/php5/20090626/
"ts" in the filename means "Thread Safety". Choose the ts-file if Thread Safety is enabled.
Now Create the configuration file. The directory can be found per phpinfo as "Scan this dir for additional .ini files":
cd /etc/php5/conf.d/ touch sourceguardian.ini joe sourceguardian.ini
Enter the following lines to the file:
[sourceguardian] zend_extension=/usr/lib/php5/20090626/ixed.5.3.lin
and save it afterwards.
... create the sourceguardian.ini in /etc/php5/mods-available/ and execute then
php5enmod sourceguardian
Finally you have to restart the apache webserver:
/etc/init.d/apache2 restart
Now the extension is installed and ViMP will be decrypted.