Install Wordpress w/ MySQL on CentOS4.8

Post date: 2011/03/07 2:17:38

1. yum install MySQL mysql-server PHP mysql-devel (phpをmakeするのに必要)

2. Download Wordpress (Japanese version) from http://ja.wordpress.org/install/

3. 適当な場所(たとえば~/work)で unzip wordpress-3.1-ja.zip

4. mysqlの設定 http://centossrv.com/mysql.shtmlを参考にした

a. /etc/my.conf編集

b. /etc/rc.d/init.d/mysqld start

ブート時に自動的に起動するには /sbin/chkconfig mysqld on

c. mysql_secure_installationを実行

5.mysql -u root -p でログインしてテーブルを作成

6.ここでphpをmakeすることに (参考: http://dan.drydog.com/apache2php.html)

phpをダウンロードして、 tar xzf php-5.3.5.tar.gz

./configure --with-apxs2=/home/anagix/anagix_tools/apache2/bin/apxs --with-mysql --prefix=/home/anagix/anagix_tools --with-zlib --with-gettext

make&make install

7. phpを使うためにapache2のhttpd.confを修正

LoadModule php5_module modules/libphp5.so

上の行は、phpのインストールで自動的に書き込まれる

あと、以下を追加

AddType text/html php

AddType application/x-httpdphp-source phps

AddHandler php5-script .php

DirectoryIndex index.html index.php

8. http://192.168.1.63:8080/wordpress/wp-admin/install.php にアクセスしてWordpressを

インストール

9. ついでにOpenIDを組み込む(実はこれがやりたかった)

a. http://wordpress.org/extend/plugins/openid/installation/ から、openid.3.3.3.zipをダウンロード

b. /home/anagix/anagix_tools/wordpress/wp-content/plugins で、unzip openid.3.3.3.zip

c. adminでpluginのOpenIDを有効化する