###前提・実現したいこと
Zend Guard Loaderが動作する環境を作りたい。
自分で構築したテスト環境(CentOS+Apache+PHP)に
Zend Guard Loaderをインストールしようとしていまがうまく動作させることができません。
###発生している問題
公式の手順通りにサーバーに設置・設定してみました。 コマンドライン(php -v)で確認すると動作しているようなのですが、 phpinfo()で確認するとZend Guard Loaderの項目が表示されず動作していません。
###コマンドラインでの状況
CentOS
1[root@test conf.d]# php -v 2PHP 5.6.30 (cli) (built: Jan 19 2017 07:08:58) 3Copyright (c) 1997-2016 The PHP Group 4Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies 5 with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies 6 with Zend Guard Loader v3.3, Copyright (c) 1998-2015, by Zend Technologies
[root@test php.d]# cat 10-zendguard.ini ; Enable Zend GuardLoader extension module zend_extension=/opt/remi/php56/root/usr/lib64/php/modules/ZendGuardLoader.so ; Enables loading encoded scripts. The default value is On zend_loader.enable=1 ; Disable license checks (for performance reasons) zend_loader.disable_licensing=0 ; The Obfuscation level supported by Zend Guard Loader. The levels are detailed in the official Zend Guard Documentation. 0 - no obfuscation is enabled zend_loader.obfuscation_level_support=0 ; Path to where licensed Zend products should look for the product license. For more information on how to create a license file, see the Zend Guard User Guide ;zend_loader.license_path=
shell
1[root@test php.d]# php -i | grep "Zend Guard Loader" 2 with Zend Guard Loader v3.3, Copyright (c) 1998-2015, by Zend Technologies 3Zend Guard Loader 4Zend Guard Loader => enabled
###phpinfo()の結果
作成したiniファイルはたしかに読み込まれています。
ここに「with Zend Guard Loader v3.3, Copyright (c) 1998-2015, by Zend Technologies」が
表示されれば正解とのことなのですが、表示されません。
コマンドラインでは出ているのですが・・
[root@test conf.d]# php -i phpinfo() PHP Version => 5.6.30 -------中略------------- This program makes use of the Zend Scripting Language Engine: Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies with Zend Guard Loader v3.3, Copyright (c) 1998-2015, by Zend Technologies -------中略------------- Zend Guard Loader Zend Guard Loader => enabled License Path => Obfuscation level => 0 -------後略-------------
対話シェルでのPHP実行(zendgurae関数)
[root@test conf.d]# php -a; Interactive shell php > echo zend_loader_enabled(); 1
###設置手順
- サーバー上に公式サイトからZendGuardLoader.soをダウンロードし、/opt/remi/php56/root/usr/lib64/php/modules/ZendGuardLoader.soへコピー
- /etc/httpd/conf.dに10-zendguard.iniを作成
- systemctl reload httpdでhttpdの再起動
###補足情報
CentOS 7.3.1611 64bit
Apache 2.4.6
PHP 5.6.30
Zend Guard Loader for PHP 5.6 - 64 bit
なぜこうなるのか理由に見当がつきません。
どなたかこのような現象についてご存知の方いらっしゃいましたらご教授ください。
あなたの回答
tips
プレビュー