<?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>HattaraTecLog &#187; Cent4</title>
	<atom:link href="http://teclog.hattara.info/?feed=rss2&#038;tag=cent4" rel="self" type="application/rss+xml" />
	<link>http://teclog.hattara.info</link>
	<description>LinuxネタとかPHPネタとかの技術ログ</description>
	<lastBuildDate>Tue, 18 Nov 2014 12:15:20 +0000</lastBuildDate>
	<language>ja</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.8</generator>
	<item>
		<title>Cent4&amp;PHP5&amp;Trac&amp;Pythonの甘い罠</title>
		<link>http://teclog.hattara.info/?p=34</link>
		<comments>http://teclog.hattara.info/?p=34#comments</comments>
		<pubDate>Thu, 09 Oct 2008 12:23:43 +0000</pubDate>
		<dc:creator><![CDATA[hattara]]></dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Cent]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[Trac]]></category>
		<category><![CDATA[Apache2]]></category>
		<category><![CDATA[Cent4]]></category>
		<category><![CDATA[エラーメッセージ]]></category>

		<guid isPermaLink="false">http://teclog.hattara.info/?p=34</guid>
		<description><![CDATA[Cent4(CentOS4)系でTrac(Python&#038;Sqlite)を使う場合に、 PHP5を利用 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Cent4(CentOS4)系でTrac(Python&#038;Sqlite)を使う場合に、<br />
PHP5を利用していると、(pdo_sqlite)がconflict?するようで、<br />
TracかPhpかどちらかしか動作しなくなる。</p>
<p>具体的には、yum版のApache2とかだと、<br />
/etc/httpd/conf.d/php.conf とかで以下の記述がある場合、<br />
Tracが動かなくなる。</p>
<blockquote><p>LoadModule php5_module modules/libphp5.so</p></blockquote>
<p>具体的には、ブラウザ上では、500エラーになり、<br />
エラーログでは、以下のような出力がたくさんでる。</p>
<blockquote><p>PythonHandler trac.web.modpython_frontend: DatabaseError: unsupported file format</p></blockquote>
<p>で、上記のLoadModuleをコメントアウトすると、Phpは動かなくなるが、<br />
Tracは動くようになる。</p>
<p>ということで、PhpでSqliteを使う予定がなければ、<br />
以下のようにpdo_sqlite.iniを適当な名前にリネームしてあげればよし。</p>
<blockquote><p>mv -i /etc/php.d/pdo_sqlite.ini /etc/php.d/pdo_sqlite.ini_org</p></blockquote>
<p>その後、Apacheの再起動をお忘れなく。<br />
yum版(rpm)のApacheの場合には、</p>
<blockquote><p>/usr/sbin/apachectl restart</p></blockquote>
<p>とかでいいですね。</p>
<p>で、以下のサイトを参考にさせてもらいました。</p>
<p><a href="http://www.ryuzee.com/contents/blog/670<br />
">Ryuzee.com >> CentOS4でPHP4から5にするとTracが動かなくなる</a></p>
]]></content:encoded>
			<wfw:commentRss>http://teclog.hattara.info/?feed=rss2&#038;p=34</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
