乌秋博客
梦想在左,生活在右。   

Zeus-4.3r2 + PHP 安装手记
原来系统的zeus-4.2r3有漏洞,被跨站挂马,不得不升级到4.3r2
# tar xzvf Zeus_43r2_Linux-x86.tgz
# cd Zeus_43r2_Linux-x86
# ./zinstall

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/license.key (这里的 key 是假的,真正的破解在之后覆盖二进制程序中进行)

Please choose a password for the admin server: ****** (输入管理员密码)
Re-enter: ****** (重新输入密码)

Would you like Zeus to start at boot time? Y/N [Y]: (回车)

进行破解
#cp -f /usr/local/src/zeus.web /usr/local/zeus/web/bin (zeus.web要下载的,zeus安装包里没带有)

把Zeus自带的PHP换掉
# rm /usr/local/zeus/php/php.zeus -f

给自己编译的PHP做一个符号连接
ln -s /usr/local/php/bin/php-cgi /usr/local/zeus/php/php.zeus

进入Zeus Web管理控制台,创建一个虚拟主机,设置如下:
Enabling PHP Support:选 Enabled

将 Specify the maximum number of PHP processes that should be created for each user:
由默认的 8 改为 5

将 Specify the maximum number of requests that an individual PHP process should handle. This prevents errant PHP processes from consuming too much memory.
由默认的 500 改为 200

其实这样仍然能够相应 5*200=1000个并发PHP请求了,足矣。

点左边Url Handling下面的Directory Requests
Index Files中的内容为 index.html, index.htm, index.shtml, index.cgi, index.php
Directory Listing,一定要Disabled,不然有安全问题。

参考资料:
http://bbs2.mykgt.com/simple/index.php?t23585.html
posted at 07/10/31 15:27 | 开发手记 - 工作日志 | 浏览(3) | 引用 | 评论

 Track this back : http://www.koven.org/rserver.php?mode=tb&sl=307
  name   password   homepage
隐藏评论(只有管理员可见)    


      << prev    1  ...  261  262  263  264  265  266  267  268  269  ...  336    next >>