<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>zaru blog &#187; サーバ_Linux_Windows</title>
	<atom:link href="http://zaru.tofu-kun.org/category/%e3%82%b5%e3%83%bc%e3%83%90_linux_windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://zaru.tofu-kun.org</link>
	<description>Web系のこととかー。</description>
	<lastBuildDate>Tue, 11 May 2010 01:57:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://zaru.tofu-kun.org/category/%e3%82%b5%e3%83%bc%e3%83%90_linux_windows/feed/" />
		<item>
		<title>CentOS4.5にPHP5.3をyumを使ってインストールする</title>
		<link>http://zaru.tofu-kun.org/2010/03/10/centos4-5%e3%81%abphp5-3%e3%82%92yum%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b/</link>
		<comments>http://zaru.tofu-kun.org/2010/03/10/centos4-5%e3%81%abphp5-3%e3%82%92yum%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 08:52:03 +0000</pubDate>
		<dc:creator>zaru</dc:creator>
				<category><![CDATA[サーバ_Linux_Windows]]></category>

		<guid isPermaLink="false">http://zaru.tofu-kun.org/?p=150</guid>
		<description><![CDATA[古いCentOSに新しいPHPをインストールするには…？
CentOS4.5という微妙に古いバージョンを使っているので、yumでアプリケーションを管理していると最新のものからは程遠いバージョンを使うことが多い。けど、PHPは5.3が使いたい！でもソースからインストールすると面倒くさい。というわけで、yumリポジトリを追加してインストールしよう。
EPEL : yumリポジトリ追加
EPELというRHEL, Centos 向けの拡張パッケージリポジトリがあるので、こいつを追加する。

wget http://download.fedora.redhat.com/pub/epel/4/i386/epel-release-4-9.noarch.rpm
wget http://rpms.famillecollet.com/el4.i386/remi-release-4-5.el4.remi.noarch.rpm
rpm -Uvh remi-release-4*.rpm epel-release-4*.rpm
cd /etc/yum.repos.d
wget http://rpms.famillecollet.com/remi-enterprise.repo
rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi

PHPのバージョンをチェック
先ほど追加したリポジトリを有効にしてリストをチェックする

yum --enablerepo=remi list php

php.i386                                 5.3.2-1.el4.remi
というわけで、無事に5.3が見つかる。

yum --enablerepo=remi update php

これで無事完了。ただし、PHP5.3にアップデートすることで、既存のアプリケーションがエラーになって動かないことがあるので要注意。
]]></description>
			<content:encoded><![CDATA[<h3>古いCentOSに新しいPHPをインストールするには…？</h3>
<p>CentOS4.5という微妙に古いバージョンを使っているので、yumでアプリケーションを管理していると最新のものからは程遠いバージョンを使うことが多い。けど、PHPは5.3が使いたい！でもソースからインストールすると面倒くさい。というわけで、yumリポジトリを追加してインストールしよう。</p>
<h3>EPEL : yumリポジトリ追加</h3>
<p>EPELというRHEL, Centos 向けの拡張パッケージリポジトリがあるので、こいつを追加する。</p>
<pre class="brush: bash;">
wget http://download.fedora.redhat.com/pub/epel/4/i386/epel-release-4-9.noarch.rpm
wget http://rpms.famillecollet.com/el4.i386/remi-release-4-5.el4.remi.noarch.rpm
rpm -Uvh remi-release-4*.rpm epel-release-4*.rpm
cd /etc/yum.repos.d
wget http://rpms.famillecollet.com/remi-enterprise.repo
rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi
</pre>
<h3>PHPのバージョンをチェック</h3>
<p>先ほど追加したリポジトリを有効にしてリストをチェックする</p>
<pre class="brush: bash;">
yum --enablerepo=remi list php
</pre>
<p><code>php.i386                                 5.3.2-1.el4.remi</code></p>
<p>というわけで、無事に5.3が見つかる。</p>
<pre class="brush: bash;">
yum --enablerepo=remi update php
</pre>
<p>これで無事完了。ただし、PHP5.3にアップデートすることで、既存のアプリケーションがエラーになって動かないことがあるので要注意。</p>
<img src="http://zaru.tofu-kun.org/?ak_action=api_record_view&id=150&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://zaru.tofu-kun.org/2010/03/10/centos4-5%e3%81%abphp5-3%e3%82%92yum%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://zaru.tofu-kun.org/2010/03/10/centos4-5%e3%81%abphp5-3%e3%82%92yum%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b/" />
	</item>
		<item>
		<title>WindowsのApache+OpenSSLで、CSRを作成する時に</title>
		<link>http://zaru.tofu-kun.org/2010/03/08/windows%e3%81%aeapacheopenssl%e3%81%a7%e3%80%81csr%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%99%82%e3%81%ab/</link>
		<comments>http://zaru.tofu-kun.org/2010/03/08/windows%e3%81%aeapacheopenssl%e3%81%a7%e3%80%81csr%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%99%82%e3%81%ab/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 09:35:09 +0000</pubDate>
		<dc:creator>zaru</dc:creator>
				<category><![CDATA[サーバ_Linux_Windows]]></category>

		<guid isPermaLink="false">http://zaru.tofu-kun.org/?p=146</guid>
		<description><![CDATA[WindowsのApache+OpenSSLで、CSRを作成しようの回
ちょっとした案件で、Windows2000Serverで稼働しているApache＋OpenSSLなサーバでSSLの更新作業をする必要があり、まずはCSRを作らねば、ということでOpenSSLのある場所までコマンドプロンプトで移動。
C:¥&#62;openssl.exe req -new &#62; server.csr
とかやると、なぜか
Unable to load config info from /usr/local/ssl/openssl.cnf
とエラーで怒られる。Windowsなのに、そのパス指示はなんだよ！と思いつつ、仕方がないのでコマンドのヘルプを見たら、openssl.cnfのファイル場所を指定できるらししい。
C:¥&#62;openssl.exe req -new -config openssl.cnf &#62; server.csr
余談
んじゃ、openssl.cnfはどこにあるんだろう？と思って検索してみたら…あれ？なんか出てこない…。なんでなんで？と思って調べていたら、どうやらWindowsでは拡張子「cnf」は短縮ダイヤルのアイコンで表示されるらしい。な、なんだってー？！知らなかったよ。MySQLの設定ファイル「my.cnf」も同様に表示されるっぽい。
しかし、拡張子をすべて表示するっていう設定に指定たんだけどなぁ。エクスプローラ上では「openssl」ってファイル名になっているんだよね。秀丸で開くと「openssl.cnf」ってファイル名だけど。まぁ、いいや。
]]></description>
			<content:encoded><![CDATA[<h3>WindowsのApache+OpenSSLで、CSRを作成しようの回</h3>
<p>ちょっとした案件で、Windows2000Serverで稼働しているApache＋OpenSSLなサーバでSSLの更新作業をする必要があり、まずはCSRを作らねば、ということでOpenSSLのある場所までコマンドプロンプトで移動。</p>
<p><code>C:¥&gt;openssl.exe req -new &gt; server.csr</code></p>
<p>とかやると、なぜか</p>
<p><code>Unable to load config info from /usr/local/ssl/openssl.cnf</code></p>
<p>とエラーで怒られる。Windowsなのに、そのパス指示はなんだよ！と思いつつ、仕方がないのでコマンドのヘルプを見たら、openssl.cnfのファイル場所を指定できるらししい。</p>
<p><code>C:¥&gt;openssl.exe req -new -config openssl.cnf &gt; server.csr</code></p>
<h3>余談</h3>
<p>んじゃ、openssl.cnfはどこにあるんだろう？と思って検索してみたら…あれ？なんか出てこない…。なんでなんで？と思って調べていたら、どうやらWindowsでは拡張子「cnf」は短縮ダイヤルのアイコンで表示されるらしい。な、なんだってー？！知らなかったよ。MySQLの設定ファイル「my.cnf」も同様に表示されるっぽい。</p>
<p>しかし、拡張子をすべて表示するっていう設定に指定たんだけどなぁ。エクスプローラ上では「openssl」ってファイル名になっているんだよね。秀丸で開くと「openssl.cnf」ってファイル名だけど。まぁ、いいや。</p>
<img src="http://zaru.tofu-kun.org/?ak_action=api_record_view&id=146&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://zaru.tofu-kun.org/2010/03/08/windows%e3%81%aeapacheopenssl%e3%81%a7%e3%80%81csr%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%99%82%e3%81%ab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://zaru.tofu-kun.org/2010/03/08/windows%e3%81%aeapacheopenssl%e3%81%a7%e3%80%81csr%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%99%82%e3%81%ab/" />
	</item>
	</channel>
</rss>
