Directadmin安装Zend Optimizer与Ioncube

  1. [root@localhost ~]# /usr/local/directadmin/custombuild/build set zend yes
  2. [root@localhost ~]# ./build zend
  3.  
  4. [root@localhost ~]# /usr/local/directadmin/custombuild/build set ioncube yes
  5. [root@localhost ~]# ./build ioncube

或者编辑Directadmin的options.conf,重新编译一次

  1. 打开options.conf文件
  2. [root@localhost ~]# vi /usr/local/directadmin/custombuild/options.conf
  3. #找到
  4. ioncube=No
  5. zend=No
  6. #改为
  7. ioncube=yes
  8. zend=yes
  9. [root@localhost ~]# /usr/local/directadmin/custombuild/build all

重新调整php的ioncube

whmcs需要ioncube组件的支持,但是DirectAdmin调整为php-cgi模式后,原本ioncube组件用不了。。。
添加到新的php.ini

  1. zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so

或者直接把旧的覆盖过来

  1. [root@linux1 directadmin]# mv /usr/local/etc/php5/cgi/php.ini /usr/local/etc/php5/cgi/php.ini.bak
  2. [root@linux1 directadmin]# cp /usr/local/Zend/etc/php.ini /usr/local/etc/php5/cgi/php.ini
  3. [root@linux1 directadmin]# service httpd reload
  4. Reloading httpd:                                           [  OK  ]
  5. [root@linux1 directadmin]# php -v
  6. PHP 5.2.13 (cli) (built: May 14 2010 12:06:33) 
  7. Copyright (c) 1997-2010 The PHP Group
  8. Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
  9.     with the ionCube PHP Loader v3.3.14, Copyright (c) 2002-2010, by ionCube Ltd., and
  10.     with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
  11.     with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
1 1