可能有些人会用到SHOPNC这类用Zend加密的程序,因此需要添加Zend Guard Loader,不过安装好后用探针检测,可能会出现以下情况——Zend Guard Loader旁边显示小红叉。例如安装DirectAdmin时选择PHP5.3并且选择添加Zend时,就会出现这种情况:
我们来看看Zend的官方说明文档:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
ZendGuardLoaderinstallationinstructions ------------------------------------------- 1.ExtracttheZendLoaderpackage. 2.LocateandextracttheZendGuardLoader.so(Linux)orZendLoader.dll(Windows)thatcorrespondstoyourphpversion. 3.Addthefollowinglinetoyourphp.inifileforloadingtheZendGuardLoader: LinuxandMacOSX: zend_extension=<full_path_to_ZendGuardLoader.so> Windowsnon-threadsafe:zend_extension=<full_path_to_ZendLoader.dll> 4.Addanaditionallinetoyourphp.iniforenablingZendGuardLoader ;Enablesloadingencodedscripts.ThedefaultvalueisOn zend_loader.enable=1 5.Optional:followinglinescanbeaddedyourphp.inifileforZendGuardLoaderconfiguration: ;Disablelicensechecks(forperformancereasons) zend_loader.disable_licensing=0 ;TheObfuscationlevelsupportedbyZendGuardLoader.ThelevelsaredetailedintheofficialZendGuardDocumentation.0-noobfuscationisenabled zend_loader.obfuscation_level_support=3 ;PathtowherelicensedZendproductsshouldlookfortheproductlicense.Formoreinformationonhowtocreatealicensefile,seetheZendGuardUserGuide zend_loader.license_path= 6.IfyouuseZenddebuggeraswell,pleasemakesuretoloaditaftertheZendguardLoader 7.Ifyouuseioncubeloader,pleasemakesuretoloaditbeforeZendguardLoader 8.RestartyourWebserver. |
明文说明需要添加zend_loader.enable=1,执行此命令可以检查php.ini有没有这一行代码(仅仅适合PHP-CLI/CGI,FPM的用find命令找出来后手动检查):