为Nginx安装PHP IonCube Loader(Ubuntu)
时间:2020-03-21 11:49:00 来源:igfitidea点击:
我们正在使用Nginx前端设置VoIP监视器。
使用32位Ubuntu 10.04.4 LTS:
# uname -rvm && cat /etc/issue 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:15:33 UTC 2013 i686 Ubuntu 12.04.4 LTS \n \l
PHP v5.3版本详细信息:
$php5 -v PHP 5.3.10-1ubuntu3.11 with Suhosin-Patch (cli) (built: Apr 4 2014 01:27:23) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
下载并安装适用于Nginx的IonCude PHP扩展:
# cd /usr/lib/php5/20090626+lfs/ # wget http://www.voipmonitor.org/ioncube/i686/ioncube_loader_lin_5.3.so
# echo "zend_extension = /usr/lib/php5/20090626+lfs/ioncube_loader_lin_5.3.so" \ >>/etc/php5/fpm/conf.d/ioncube.ini
重新启动FastCGI流程管理器:
# service php5-fpm restart
$php5 -v PHP 5.3.10-1ubuntu3.11 with Suhosin-Patch (cli) (built: Apr 4 2014 01:27:23) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies with the ionCube PHP Loader v4.5.2, Copyright (c) 2002-2014, by ionCube Ltd.