Centos如何安裝Zend Optimizer(64位virtualmin/..


如果您的centos系統需要安裝Zend Optimizer(比如virtualmin/webmin就沒有安裝zend optimizer),請複製下面1行命令,用root登錄centos,粘貼,回車,一路回車即可完成安裝zend optimizer(32位、64位的linux系統都支持!):

wget http://www.CTOHome.com/linux-vps-pack/zend.sh;sh ./zend.sh;

然後一路YES,OK和回車,安裝就完成了。一般來說,不需要另外編輯php.ini文件就可以正常工作了。

如果您是64位的contos/linux系統,那麼要注意安裝64位的zend optimizer:

上面的1行命令會自動判斷64位系統,並自動下載64位的zend optimizer!

Zend optimizer 3.3.9有一些新的改動,不需要安裝了,直接在php.ini文件裏面引用.so文件即可:

http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz  (32位)

http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-x386.tar.gz  (64位)

Zend optimizer 3.3.9使用說明:

ZendOptimizer-3.3.9-linux-glibc23-x86_64]# more README-ZendOptimizer
Zend Optimizer installation instructions
----------------------------------------
Important: if you are installing this product because you received a message from a web site telling you to install Zend Optimizer a
nd you are *not* the administrator of that web site STOP!.  You do not need to install this software. Instead, contact the website's
 system administrator and tell them that their website is displaying an error relating to Zend Optimizer and that they need to insta
ll Zend Optimizer in order to resolve this problem.

Release Information: This update is only relevant for PHP 5.2.X although this is a complete packagethat supports all other PHP versi
ons.

1. Extract the Zend Optimizer package.

2. Locate the ZendOptimizer.so (Unix) or ZendOptimizer.dll (Windows) file in the directory which
   corresponds to your version of PHP (4.3.x, 4.4.x, 5.0.x, 5.1.x, 5.2.x).

2. Add the following line to your php.ini file:
   Linux and Mac OS X:     zend_extension=<full_path_to_ZendOptimizer.so>
   Windows:                zend_extension_ts=<full_path_to_ZendOptimizer.dll>
   Windows non-thread safe: zend_extension=<full_path_to_ZendOptimizer.dll>
   (*) The Windows non-thread safe binary is only used with Zend Core 2.0.

3. Restart your Web server.

如果您需要修改某些參數,請參考下面的信息:

編輯/etc/php.ini

vi /etc/php.ini

找到:zend.ze1_compatibility_mode = Off

修改爲:zend.ze1_compatibility_mode = On

保存退出!

編輯/etc/ispcp/fcgi/parts/php5/php.ini

找到:zend.ze1_compatibility_mode = Off

修改爲:zend.ze1_compatibility_mode = On

在最後位置添加如下內容:

[Zend]
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
zend_optimizer.version=3.3.3
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

保存退出。然後同樣以編輯/etc/ispcp/fcgi/parts/php5/php.ini的方式編輯/var/www/fcgi /domain.ltd/php5/php.ini以及/var/www/fcgi/master/php5/php.ini。至 此,zendoptimizer安裝完成了!!所有的站點都可以使用ZendOptimizer!!!


備註:將zend.ze1_compatibility_mode設置成 On僅在PHP4下,如果您只安裝了PHP5,建議不要修改,仍保持zend.ze1_compatibility_mode爲Off狀態, 即:zend.ze1_compatibility_mode = Off


發佈了3 篇原創文章 · 獲贊 7 · 訪問量 13萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章