- 追加された行はこの色です。
- 削除された行はこの色です。
#contents
*Wordpressサーバー移行 [#mb7eeaf2]
**piano.smb.net -> piano2nd.smb.net [#r59bec30]
新しいサーバの方で、
portinstall //wordpress
しておく。目的のURL、例えば http://pinao2nd.smb.net/wordpress で表示出来るように、
ln -s /usr/local/www/data/wordpress/ /usr/local/www/apache22/data/wordpress/
する。Wordpressを表示させて、ログインし、「一般設定」でURLを変更する。
それだけでは、コンテンツの画像などがリンク切れで表示できないので、phpMyAdminなどから、WP用のDBを編集する。
#ref(sql_change.png)
update テーブル名 set カラム名 = replace(カラム名,’置換前文字列’,'置換後文字列’);
ということで、以下のように実行。
update wp_posts set guid = replace(guid,'piano.smb.net' ,'piano2nd.smb.net' );
update wp_Counterize_Referers set name = replace(name,'piano.smb.net' ,'piano2nd.smb.net' );
update wp_posts set post_content = replace(post_content,'piano.smb.net' ,'piano2nd.smb.net' );
*Wordpress on FreeBSD [#sbd49633]
piano:root {249} % portinstall www/wordpress
**** NOTE ****
Before the first use of WordPress, copy wp-config-sample.php to wp-config.php
in ${PREFIX}/${WORDPRESS}
And Modify it to fit your MySQL.
Maybe you need 'mysqladmin create wordpress' first
If you are upgrading from 1.x or 2.0 to 2.x, please run
http://your.site/wordpress/wp-admin/upgrade.php to upgrade to WordPress 2.5.1
===> Registering installation for wordpress-2.7.1,1
===> Cleaning for wordpress-2.7.1,1
piano:root {250} %
/usr/local/www/data/wordpress
piano:root {251} % cd /usr/local/www/data/wordpress
piano:root {252} % cp wp-config-sample.php wp-config.php
vi wp-config.php
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'WP');
/** MySQL database username */
define('DB_USER', 'wp');
/** MySQL database password */
define('DB_PASSWORD', 'xxxxxxxx');
piano:root {254} % ln -s /usr/local/www/data/wordpress /usr/local/www/apache22/data/wordpress
http://ja.wordpress.org/
から日本語のwordpress-2.7.1-ja.zipを取ってくる
wordpress-2.9.1-ja.tar.gz を取ってきて、/usr/home/tfc/public_html へcp
piano:root {250} % tar xvfzp wordpress-2.9.1-ja.tar.gz
piano:root {250} % chown -R www:www wordpress
piano:root {254} % cp wp-config-sample.php wp-config.php
データベース設定をして、phpmyadminで新しいDBを作成。
あとは、readme.html にアクセスしてインストールすれば、OK
----
#counter([total|today|yesterday]);
&lastmod;
----