<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>【知行合一】-Poople&#039;s Blog &#187; Zeus</title>
	<atom:link href="http://99dev.net/archives/tag/zeus/feed" rel="self" type="application/rss+xml" />
	<link>http://99dev.net</link>
	<description>智巧终归庸俗，雄谋只余虚话</description>
	<lastBuildDate>Fri, 23 Jul 2010 09:52:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>[Original]Linux+Zeus+php.fcgi配置过程</title>
		<link>http://99dev.net/archives/714</link>
		<comments>http://99dev.net/archives/714#comments</comments>
		<pubDate>Thu, 26 Nov 2009 08:48:45 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[Web服务器]]></category>
		<category><![CDATA[系统架构]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zeus]]></category>

		<guid isPermaLink="false">http://99dev.net/archives/714</guid>
		<description><![CDATA[1.系统环境配置
配置中文支持
rpm -ivh fonts-chinese-3.02-12.el5.noarch.rpm
rpm -ivh fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
<span class="readmore"><a href="http://99dev.net/archives/714" title="[Original]Linux+Zeus+php.fcgi配置过程" target="_blank">阅读全文——共2321字</a></span>]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: medium"><strong>1.系统环境配置</strong></span></p>
<p><span style="font-size: x-small"><strong>配置中文支持</strong></span><br />
rpm -ivh fonts-chinese-3.02-12.el5.noarch.rpm<br />
rpm -ivh fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm</p>
<p><span style="font-size: x-small"><strong>修改Hostname</strong></span><br />
1文件中的HOSTNAME，改为你希望的名字<br />
2，/etc/hosts文件中，把所有原来机器名修改为新的机器名</p>
<p><span style="font-size: x-small"><strong>清除原服务组件</strong></span></p>
<p><span id="more-714"></span>1.kill所有nginx/php/mysql进程</p>
<p>2.删除服务组件所在目录</p>
<p>3.删除启动项，一般位于setup菜单中和/etc/rc.local文件中</p>
<p><span style="font-size: medium"><strong>2.服务组件安装</strong></span></p>
<p>安装MySQL和PHP组件，这部分大同小异，参考张宴的文章<a href="http://http://blog.s135.com/nginx_php_v5/" target="_blank">《Nginx 0.7.x + PHP 5.2.10（FastCGI）搭建胜过Apache十倍的Web服务器（第5版）》</a></p>
<blockquote><p>Tips：Screen</p>
<p>配置时。所在网络环境相当不稳定，经常发生掉线的情况。为避免掉线重新登陆，引起的正在编辑的文件被锁死的问题，建议用screen开启一个不掉线的会话。screnn的用法参考：<a title="http://www.ibm.com/developerworks/cn/linux/l-cn-screen/" href="http://www.ibm.com/developerworks/cn/linux/l-cn-screen/">http://www.ibm.com/developerworks/cn/linux/l-cn-screen/</a></p></blockquote>
<p><strong><span style="font-size: medium">3.服务组件配置调试</span></strong></p>
<p><span style="font-size: x-small"><strong>·PHP编译配置</strong></span></p>
<blockquote><p>PHP编译参数<br />
&#8216;./configure&#8217; &#8216;&#8211;prefix=/usr/local/webserver/php&#8217; &#8216;&#8211;with-config-file-path=/usr/local/webserver/php/etc&#8217; &#8216;&#8211;with-mysql=/usr&#8217; &#8216;&#8211;with-mysqli=/usr/bin/mysql_config&#8217; &#8216;&#8211;with-iconv-dir=/usr/local&#8217; &#8216;&#8211;with-freetype-dir&#8217; &#8216;&#8211;with-jpeg-dir&#8217; &#8216;&#8211;with-png-dir&#8217; &#8216;&#8211;with-zlib&#8217; &#8216;&#8211;with-libxml-dir=/usr&#8217; &#8216;&#8211;enable-xml&#8217; &#8216;&#8211;disable-rpath&#8217; &#8216;&#8211;enable-discard-path&#8217; &#8216;&#8211;enable-safe-mode&#8217; &#8216;&#8211;enable-bcmath&#8217; &#8216;&#8211;enable-shmop&#8217; &#8216;&#8211;enable-sysvsem&#8217; &#8216;&#8211;enable-inline-optimization&#8217; &#8216;&#8211;with-curl&#8217; &#8216;&#8211;with-curlwrappers&#8217; &#8216;&#8211;enable-mbregex&#8217; &#8216;&#8211;enable-fastcgi&#8217; &#8216;&#8211;enable-fpm&#8217; &#8216;&#8211;enable-force-cgi-redirect&#8217; &#8216;&#8211;enable-mbstring&#8217; &#8216;&#8211;with-mcrypt&#8217; &#8216;&#8211;with-gd&#8217; &#8216;&#8211;enable-gd-native-ttf&#8217; &#8216;&#8211;with-openssl&#8217; &#8216;&#8211;with-mhash&#8217; &#8216;&#8211;enable-pcntl&#8217; &#8216;&#8211;enable-sockets&#8217; &#8216;&#8211;with-ldap&#8217; &#8216;&#8211;with-ldap-sasl&#8217; &#8216;&#8211;with-xmlrpc&#8217; &#8216;&#8211;enable-zip&#8217; &#8216;&#8211;enable-soap&#8217; &#8216;&#8211;without-pear&#8217;</p></blockquote>
<p><span style="font-size: x-small">[PHP]编译过程中发生错误-1</span></p>
<blockquote><p>configure: error: Cannot find MySQL header files under /usr</p></blockquote>
<p><span style="font-size: x-small">[PHP]缺少mysql的头文件，需安装以下依赖包</span></p>
<blockquote><p>rpm -ivh MySQL-devel-4.1.12-1.i386.rpm</p></blockquote>
<p>[PHP]编译过程中发生错误-2</p>
<blockquote><p>error: mysql configure failed. Please check config.log for more information.</p></blockquote>
<p>[PHP]64位系统，需指定以下环境变量</p>
<blockquote><p>export LDFLAGS=-L/usr/lib64/mysql</p></blockquote>
<p><strong><span style="font-size: x-small">·Zeus编译配置</span></strong></p>
<p><span style="font-size: x-small">[Zeus]Zeus使用中遇到问题，web端口已打开，访问测试页面却显示空白。</span></p>
<blockquote><p>解决办法：Current Configuration -〉 Bind address    125.65.45.18</p></blockquote>
<p><span style="font-size: x-small"><strong>不使用Zeus自带的PHP，改用我们自己编译的新版本。</strong></span></p>
<blockquote><p>在Current Configuration -〉PHP置为Disable</p></blockquote>
<blockquote><p>在API Support-&gt;FastCGI<br />
Configuring FastCGI Remote Responders<br />
Adding a FastCGI Remote Responder</p>
<p>Directory name: /usr/local/bin/php<br />
Location: Machine name: localhost<br />
Port: 8002<br />
Additional methods supported?: none</p></blockquote>
<blockquote><p>在URL Handling-&gt;Handlers-&gt;Adding a Handler<br />
File Extension: *.php<br />
Specify the path and filename of the handler, relative to the document root: /usr/local/bin/php<br />
HTTP 404 errors are handled by: The handler</p></blockquote>
<p><strong>在Zeus/rc.d目录下，新建一个S05php可执行脚本，<a href="http://99dev.net/wp-content/uploads/2009/11/s05php">s05php</a></strong></p>
<p><strong>运行rc.d/S05php start，初始化php.fcgi进程</strong></p>
<p><strong>在www目录下，放置phpinfo.php页面测试</strong></p>
<blockquote><p>&lt;?phpinfo();?&gt;</p></blockquote>
<p><span style="font-size: x-small;"><em></em></span></p>
<p><span style="font-size: x-small;"><em>&lt;!&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;Notice&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&gt;<br />
</em></span><span style="font-size: x-small;">1.Zeus基于Web界面配置，切记在输入任何参数时，使用英文输入法。<br />
2.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/714/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>[Original]Zeus 502错误的处理方法</title>
		<link>http://99dev.net/archives/7</link>
		<comments>http://99dev.net/archives/7#comments</comments>
		<pubDate>Thu, 11 Sep 2008 09:49:58 +0000</pubDate>
		<dc:creator>蒼</dc:creator>
				<category><![CDATA[Web服务器]]></category>
		<category><![CDATA[Zeus]]></category>

		<guid isPermaLink="false">http://99dev.net/?p=7</guid>
		<description><![CDATA[升级完桑梓论坛，忽然莫名其妙出现好多错误页面，显示为 502 Bad Gateway。与此同时，FTP-WEB管理系统也登录不上了。
以为是个别问题，重启了Zeus。这样一来倒好，所有WEB虚拟主机都处于Disable状态。在管理中心将主机选中，Start无效。
 再次重启出现错误如下

<span class="readmore"><a href="http://99dev.net/archives/7" title="[Original]Zeus 502错误的处理方法" target="_blank">阅读全文——共1121字</a></span>]]></description>
			<content:encoded><![CDATA[<p>升级完桑梓论坛，忽然莫名其妙出现好多错误页面，显示为 502 Bad Gateway。与此同时，FTP-WEB管理系统也登录不上了。</p>
<p>以为是个别问题，重启了Zeus。这样一来倒好，所有WEB虚拟主机都处于Disable状态。在管理中心将主机选中，Start无效。</p>
<p> <span id="more-7"></span>再次重启出现错误如下
</p>
<p>[root@sends zeus]# ./start-zeus   <br />Initializing Zeus Application Framework. (C) 1995 &#8211; 2005 Zeus Technology Limited    <br />FastCGI PHP error: already running.Restart FastCGI PHP now    <br />Starting FastCGI PHP.    <br />PHP Warning:&#160; Zend Optimizer does not support this version of PHP &#8211; please upgrade to the latest version of Zend Optimizer in Unknown on line 0    <br />Zeus Administration Server already running: 2387    <br />Zeus Web Server &#8211; (C) 1995 &#8211; 2005 Zeus Technology Limited    <br />Version 4.3r1, Build date: Jan 26 2005 11:18:03    <br />Unable to open global log file &#8216;/usr/local/zeus/web/log/errors&#8217; : Value too large for defined data type</p>
<p>很容易看出，问题出在FastCGI PHP error: already running.Restart FastCGI PHP now</p>
<p>Unable to open global log file &#8216;/usr/local/zeus/web/log/errors&#8217; : Value too large for defined data type这2句。</p>
<p>下面分别针对这2个问题给出处理办法</p>
<p>1.如果使用Zeus作为Web Server，要求使用FastCGI方式来运行PHP，但是FastCGI有可能出现死掉进程的问题，在停止zeus时，有时候会不能停止成功，使得PIDFILE不能清除，下次再启动时，FastCGI会无法启动。如果遇到bad gateway错误，需要检查PIDFILE是否清除，如果没有则手动清除再重启Zeus。</p>
<p style="padding-left: 30px">具体操作:</p>
<p style="padding-left: 30px">进入tmp目录删除php.pid</p>
<p style="padding-left: 30px">rm -fr php.pid</p>
<p style="padding-left: 30px">
<p style="padding-left: 30px">终止所有PHP进程</p>
<p style="padding-left: 30px">killall php</p>
<p>2.error文件打不开，直接将其删除即可</p>
<p style="padding-left: 30px">rm -fr&#160; /usr/local/zeus/web/log/errors</p>
<p>完成这些步骤，使用start-zeus启动Zeus就可以了。</p>
]]></content:encoded>
			<wfw:commentRss>http://99dev.net/archives/7/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
