去screw官方下载php_screw包
安装过程(用phpize添加到已经编译好的php环境中):
- tar zxvf php_screw.tar.fz
-
cd php_screw
-
/server/server/php/bin/phpize
-
./configure --with-php-config=/server/server/php/bin/php-config
-
make
-
make install
安装结束后,会提示扩展所在路径,我的在:
- /usr/local/server/php/lib/php/extensions/no-debug-non-zts-20090626/
把扩展加入php.ini,修改extension_dir,添加:
重启fastcgi(我用的nginx)
生成加密程序:
得到:
把这个文件放到常用的目录下,然后执行加密:
- ./php_screw /webapp/xxxx.php
加密后会生成一个*.screw的文件,这是原始文件的备份.
阅读(730) | 评论(0) | 转发(0) |