Showing posts with label Zend Server. Show all posts
Showing posts with label Zend Server. Show all posts

Wednesday, August 31, 2011

Install PHPUnit on Windows 7

First you need install a Zend Server in C:\Zend folder

Install Pear

Run commands below

# pear channel-update pear.php.net
# pear upgrade pear
# pear channel-discover pear.phpunit.de
# pear channel-discover pear.symfony-project.com
# pear channel-discover components.ez.no
# pear clear-cache
# pear update-channels
# pear install --alldeps phpunit/PHPUnit

DONE!

Wednesday, July 20, 2011

CentOS install Zend Server CE

Follow the official guide "RPM Installation (RHEL, CentOS, Fedora and OEL)" first.

I install Zend Server CE with "Manually Installing Zend Server" guide. But my Zend Server repository is downloaded from here, enter the Linux tab, download the "Zend Server (DEB/RPM Installer Script)" package. Use the "zend.rpm.repo" repository file.

Then, you can finish the installation with "yum install zend-server-ce-php-5.3"

Link the /usr/bin/php to /usr/local/zend/bin/php
ln -s /usr/local/zend/bin/php /usr/bin/php
Or use "ln -f -s /usr/local/zend/bin/php /usr/bin/php"

Troubleshooting:
1. "Cannot load /usr/local/zend/lib/apache2/libphp5.so into server"
    solution: close SELINUX, /etc/selinux/config >> SELINUX="disabled"

Sunday, June 26, 2011

在 Windows 版的 Zend Server CE 安裝 PEAR

在使用 ZendServer\bin\go-pear.bat 的時候, 會出現 phar...does not have a signature 的錯誤, 這時候只需要修改 go-pear.bat 的內容

original: %PHP_BIN% -d output_buffering=0 -d PEAR\go-pear.phar
change to: %PHP_BIN% -d output_buffering=0 -d phar.require_hash=0 PEAR\go-pear.phar

這樣就可以解決無法安裝 PEAR 的問題

PEAR 安裝完後, 如果有發生 Structures_Graph 的 library 找不到, 去 Pear 下載 Structures_Graph 的 package 回來放到 PEAR 的資料夾, 再執行下面幾個指令:

pear channel-update pear.php.net
pear upgrade pear

最後再 Zend Server CE 內設定 include_path 加入 pear 套件的路徑
如果 go-pear.bat 已經加好了, 就重新啟動 Zend Server 即可使用 pear 套件了

資料來源: http://katsande.com/installing-phpunit-for-php-5-3-on-zendserver