<?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; さくらのVPS</title>
	<atom:link href="http://sakuratan.biz/archives/tag/%e3%81%95%e3%81%8f%e3%82%89%e3%81%aevps/feed" rel="self" type="application/rss+xml" />
	<link>http://sakuratan.biz</link>
	<description>モロモロ工事中です</description>
	<lastBuildDate>Sun, 25 Jun 2023 12:51:51 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>さくらの VPS に WordPress をインスコする手順</title>
		<link>http://sakuratan.biz/archives/2550</link>
		<comments>http://sakuratan.biz/archives/2550#comments</comments>
		<pubDate>Sat, 14 Aug 2010 09:09:33 +0000</pubDate>
		<dc:creator>さくら</dc:creator>
				<category><![CDATA[開発環境]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[さくらのVPS]]></category>

		<guid isPermaLink="false">http://sakuratan.biz/?p=2550</guid>
		<description><![CDATA[さくらの VPS に WordPress をインスコしてみますたので手順メモっときます。えーと、さくらの VPS の設定ダダ流しの続きで書いてますのでよく分からんところは先に元記事を見てください。 1. mysql をインスコする mysql は yum のパッケージを使います。root から mysql.x86_64、mysql-devel.x86_64、mysql-server.x86_64 ... <div style="margin-top:1ex"><a href="http://sakuratan.biz/archives/2550">(続きを読む)</a></div>]]></description>
			<content:encoded><![CDATA[<p>さくらの VPS に WordPress をインスコしてみますたので手順メモっときます。えーと、<a href="http://sakuratan.biz/archives/2492">さくらの VPS の設定ダダ流し</a>の続きで書いてますのでよく分からんところは先に元記事を見てください。</p>
<h3>1. mysql をインスコする</h3>
<p>mysql は yum のパッケージを使います。root から mysql.x86_64、mysql-devel.x86_64、mysql-server.x86_64 あたりをインスコしてください。</p>
<pre>
# yum install mysql.x86_64 mysql-devel.x86_64 mysql-server.x86_64
</pre>
<p>rc スクリプトが /etc/rc.d/init.d/mysqld に作成されますので起動します。</p>
<pre>
# /etc/rc.d/init.d/mysqld start
</pre>
<p>chkconfig でリブート時に mysqld が起動するように設定して mysql のインスコは終わりす。データベースの設定は後でします。</p>
<pre>
checkconfig --level 345 mysqld
</pre>
<h3>2. PHP を mysql モジュール付きでインスコしなおす</h3>
<p><a href="http://sakuratan.biz/archives/2492">前の記事</a>書いたときは、WordPress 使うとか考えて無かったので mysql モジュールを PHP に付けてコンパイルしてなかったので、configure からやり直します。また WordPress を動かすには zlib も必要ですので一緒に configure しなおします。</p>
<p>mysql-devel.x86_64 パッケージをインスコした後で、以下のようにリビルドしてください。</p>
<pre>
$ ./configure --with-libdir=lib64 --with-apxs2=/usr/sbin/apxs \
--with-mysql --with-mysqli --with-zlib-dir
# make
# make install
</pre>
<h3>3. WordPress 用にデータベースを作る</h3>
<p>共用鯖じゃないのでデータベースは WordPress 用に作ります。root で mysql にログインして以下のコマンドを実行します。</p>
<pre>
# mysql
mysql&gt; create database DBNAME default charset utf8;
mysql&gt; grant all on DBNAME.* to ''@localhost;
mysql&gt; revoke ALTER on DBNAME.* from  ''@localhost;
</pre>
<p>コマンドを実行する際は、DBNAME にはちゃんとしたデータベース名を指定してください。</p>
<p>この例では、新しく作ったデータベースには localhost からなら誰でもユーザー／パスワード無しでログインできるようにしています。mysqld 自体を外部から mysql に直接接続できるよう設定していませんし、<a href="http://sakuratan.biz/archives/2492">前の記事</a>で設定したパケットフィルタが mysql のポートを閉じてますので、ssh 等でシェルアカウントでログインしない限りデータベースにも入れませんので（アプリのバグとか除く）、通常これで問題無いと思います。</p>
<p>よりセキュアに仕上げたい方はユーザー／パスワード設定する等ご自由にどぞ。</p>
<h3>4. WordPress をインスコする</h3>
<p>WordPress のインスコ自体は普通ですので、<a href="http://ja.wordpress.org/">公式サイト</a>とか見てください。</p>
]]></content:encoded>
			<wfw:commentRss>http://sakuratan.biz/archives/2550/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
