Zeus 4.3+php+Zend Optimizer+Linux安装指南 7月 19th, 2006
转载自discuz.net
本文为了充分实现Zeus 4.3所具有的suexec功能,将把PHP安装为Local方式。
进入一个目录 如
cd /usr/local/src
找一个zeus 4.3 for linux的破解版本下载
wget http://xxxx/Zeus_43_Linux-x86.tgz
wget http://xxxx/Zeus_4.3_Linux_crack.taz
tar xvzf Zeus_43_Linux-x86.tgz
tar xvzf Zeus_4.3_Linux_crack.taz
cd Zeus_43_Linux-x86/
开始安装 需要重新安装可加参数--force-install-same
./zinstall
按CTRL+C 打入accept 接受协议
Where should the product be installed? [/usr/local/zeus]: 回车
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
Choose installation option [1]: 回车
Enter the key filename, or leave blank for unlicensed mode: /usr/local/src/Zeus_4.3_Linux_crack/license.key
Please choose a password for the admin server: ****** (输入管理员密码)
Re-enter: ****** (重新输入密码)
Would you like Zeus to start at boot time? Y/N [Y]: (回车)只否Zeus随系统启动
安装后 进行破解
cp -f /usr/local/src/zeus.web /usr/local/zeus/web/bin
如果有apache在跑 先把他停掉 避免80端口冲突
/usr/local/apache/bin/apachectl stop
安装php 简单配置(如果需要可以加装GD库 Freetype XML等)
cd /usr/local/src
wget wget http://au3.php.net/get/php-4.3.11.tar.gz/from/au.php.net/mirror
tar xvzf php-4.3.11.tar.gz
cd php-4.3.11/
./configure --prefix=/usr/local/php --enable-fastcgi --enable-force-cgi-redirect --with-config-file-path=/etc --with-zlib --with-mysql --with-xml
make
make install
cp php.ini-dist /etc/php.ini
安装Zend Optimizer
cd /usr/local/src
wget http://xxxx/ZendOptimizer-2.6.2-linux-glibc21-i386.tar.gz
tar xvzf ZendOptimizer-2.6.2-linux-glibc21-i386.tar.gz
cd ZendOptimizer-2.6.2-linux-glibc21-i386
./install.sh
Confirm the location of your php.ini file /etc
问Are you using Apache web server? 选No
下面把Zeus自带的老版本的PHP换掉
rm /usr/local/zeus/php/php.zeus
给刚刚编译的PHP做一个符号连接
ln -s /usr/local/php/bin/php /usr/local/zeus/php/php.zeus
设置Zeus
访问 http://IP:9090 (你的域名地址或IP地址)
用户名 admin 密码:刚才设定的密码
进入Zeus管理控制台,点Create a Virtual Server 把相关的六个选项填好
注意:
1. 指向的web目录要有权限读
2. 如果在 Host Name and Port 写域名,请确定该域名是绑定到当前IP的,否则请填写当前服务器IP地址
进入刚刚加入的virtual server,点Third Party中的PHP
Enabling PHP Support:选 Enabled
Apply Changes,然后点上面的 This configuration has been modified. Click here for details or to make it take effect.
然后 Commit
点左边Url Handling下面的Directory Requests
Index Files中的内容为 index.html, index.htm, index.shtml, index.cgi, index.php
如果不需要 index.shtml, index.cgi,可以将其去掉
Directory Listing,一定要Disabled,否则可以列表。
启动Zeus的命令为 /usr/local/zeus/start-zeus
停止Zeus的命令为 /usr/local/zeus/stop-zeus
重启Zeus的命令为 /usr/local/zeus/restart-zeus
如果安装的时候没有设定让Zeus开机自动启动,可编辑/etc/rc.local
加入一行
/usr/local/zeus/start-zeus
使得Zeus在开机时自动运行
Hi,老培,
很久没有联系你了,搞得我自己都觉得惭愧了。。真是歹势呀!你最近还好吗?希望你一切都顺利,无论哪一方面,工作不要太劳累,身体要顾,记得要坚持运动减肥。。如果有什么郁闷的事情就找大头出来出出气,打他一顿应该会好点的:-)我离你太远,不然我也乐意效劳的,哈哈。。。保重!如果有事情找我,写email给我哦,email地址就是msn那个。