本篇介紹在SUSE裡架設 zeus + php4.4.4 + mysql
1.安裝 mysql
到官網抓取 下面六個檔
MySQL-client-standard-4.1.22-0.sles9.i586.rpm
MySQL-devel-standard-4.1.22-0.sles9.i586.rpm
MySQL-server-standard-4.1.22-0.sles9.i586.rpm
MySQL-shared-compat-4.1.22-0.sles9.i586.rpm
MySQL-shared-standard-4.1.22-0.sles9.i586.rpm
MySQL-test-standard-4.1.22-0.sles9.i586.rpm
用rpm -ivh 安裝這6個rpm檔 , 注意:第一個安裝最好為 MySQL-server-standard-4.1.22-0.sles9.i586.rpm,不然會出現相依性問題!
2.安裝 zeus (注意 如果有裝apache 必須停掉)
a. ./zinstall
b. 詢問是否接受該說明文件的內容 輸入accept
c. Where should the product be installed? [/usr/local/zeus]: "enter"
d. Installation options:
1. Full install of both admin server & web server
2. Stand-alone install of admin server
3. Clustered install of web server
H. Help
"選擇 1 enter"
e. Enter the key filename, or leave blank for unlicensed mode: 輸入解開後路徑裡的license.key 位置
f. Please choose a password for the admin server: ****** (輸入管理員密碼)
Re-enter: ****** (重新輸入密碼)
g. Enable SNMP support for web package? Y/N [N]: (不允許SNMP )
h. What USER do you want to run zeus?[nobody]: "enter"
i. What Group do you want to run zeus?[nobody]: "enter"
j. Would you like Zeus to start at boot time? Y/N [Y]: 在開機執行 確定
3.安裝php
a. 到官網抓php
b. 解壓縮
c. 以下是我安裝php的參數 ,不一定要完全一樣
./configure
–prefix=/usr
–datadir=/usr/share/php
–mandir=/usr/share/man
–libdir=/usr/share
–includedir=/usr/include
–sysconfdir=/etc
–with-_lib=lib
–with-config-file-path=/etc
–with-exec-dir=/usr/lib/php/bin
–disable-debug
–enable-inline-optimization
–enable-memory-limit
–enable-magic-quotes
–enable-safe-mode
–enable-sigchild
–disable-ctype
–disable-session
–with-mysql=/usr
–disable-cli
–without-pear
–enable-force-cgi-redirect
–enable-fastcgi
–bindir=/srv/www/cgi-bin
–enable-module=so
d. make && make install
e. 將php裡所附的 php.ini-dist 複製到/etc/php.ini
# cp php.ini-dis /etc/php.ini
f. –prefix=/usr <– 安裝路徑
–with-mysql=/usr <– mysql的安裝路徑
4. php – extensions
php的extensions 可以參考 PHP如何手動編譯自己所需的extensions檔案
5. 將zeus 結合php
a. 到/usr/local/zeus/php目錄裡
b. 將原本的php.zeus殺掉
# rm php.zeus
c 將php.zeus的link 指向所安裝的php
# ln -s /srv/www/cgi-bin/php php.zeus
d 重啟zeus
# service zeus restart
6.啟用htaccess
a. 到/usr/local/zeus/web目錄裡
b. 新增htaccess這檔案,並輸入PassEnvAuthorization on
# vi htaccess
# echo ‘PassEnvAuthorization on’ > httaccess
d. 儲存離開 設好讓zeus可讀的權限
e. 重啟zeus
# service zeus restart
啟動Zeus的命令為 /usr/local/zeus/start-zeus
停止Zeus的命令為 /usr/local/zeus/stop-zeus
重啟Zeus的命令為 /usr/local/zeus/restart-zeus
最近剛有有下載suse要來玩看看!!
= =
Thanks for the post,
Good blog
Hmmm, I am tempted to try this.
Keep up the good work!