﻿<?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>知者无忧 &#187; fcgi</title>
	<atom:link href="http://www.notii.com/tag/fcgi/feed" rel="self" type="application/rss+xml" />
	<link>http://www.notii.com</link>
	<description>NOThing Is Impossible! —— 原创文章，谢绝转载！</description>
	<lastBuildDate>Sat, 22 Oct 2011 10:23:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>解决PHP的FCGI的254错误</title>
		<link>http://www.notii.com/2010/01/php-fcgi-254-error.html</link>
		<comments>http://www.notii.com/2010/01/php-fcgi-254-error.html#comments</comments>
		<pubDate>Sun, 17 Jan 2010 04:49:18 +0000</pubDate>
		<dc:creator>ZZQ</dc:creator>
				<category><![CDATA[fcgi]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.notii.com/?p=645552</guid>
		<description><![CDATA[昨天登陆VPS，看到ubuntu有几个安全更新，就upgrade了一把，结果fast-cgi的进程就无法启动了，具体症状为： 运行“/usr/bin/spawn-fcgi 参数省略……”，出现错误： spawn-fcgi: child exited with: 254 检查“php -v”，没有发现问题。 检查“php-cgi -v”，报错： # php-cgi -v PHP Warning:&#160; [eAccelerator] This build of "eAccelerator" was compiled for PHP version 5.2.10-2ubuntu6.3. Rebuild it for your PHP version (5.2.10-2ubuntu6.4) or download precompiled binaries. in Unknown on line 0 PHP Fatal error:&#160; Unable to start eAccelerator module in Unknown on [...]]]></description>
			<content:encoded><![CDATA[<p>昨天登陆VPS，看到ubuntu有几个安全更新，就upgrade了一把，结果fast-cgi的进程就无法启动了，具体症状为：</p>
<p>运行“/usr/bin/spawn-fcgi 参数省略……”，出现错误：</p>
<blockquote>
<p><span style="color: #ff0000;">spawn-fcgi: child exited with: 254</span></p>
</blockquote>
<p>检查“php -v”，没有发现问题。</p>
<p>检查“php-cgi -v”，报错：</p>
<blockquote>
<p># php-cgi -v</p>
<p>PHP Warning:&nbsp; [eAccelerator] This build of "eAccelerator" was compiled for PHP version 5.2.10-2ubuntu6.3. Rebuild it for your PHP version (5.2.10-2ubuntu6.4) or download precompiled binaries.</p>
<p>in Unknown on line 0</p>
<p>PHP Fatal error:&nbsp; Unable to start eAccelerator module in Unknown on line 0</p>
</blockquote>
<p>原来是升级之后，eAccelerator版本不符合了，需要重新编译安装。</p>
<p>于是下载eAccelerator最新版，重新安装之：</p>
<blockquote>
<p>#tar -zxvf ./eaccelerator-0.9.5.tar.bz2<br>
#cd eaccelerator-0.9.5<br>
#export PHP_PREFIX="/usr/local" （把PHP安装目录导入到环境变量，FreeBSD默认是/usr/local）<br>
#$PHP_PREFIX/bin/phpize<br>
#./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config<br>
#make<br>
#make install</p>
</blockquote>
<p>以前已有的php设置无需改动。（如果你是第一次安装eaccelerator，请参考其安装说明进行设置）</p>
<p>重新启动spawn-fcgi，恢复正常了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.notii.com/2010/01/php-fcgi-254-error.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

