2009年8月5日 星期三

Install WordPress 2.8.2 練習

WordPress
http://wordpress.org/
http://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install
http://wptw.org/

環境:
CentOS release 5.3 (Final)

WordPress 最低要求:
PHP 4.3 或更新版本
MySQL 4.0 或更新版本
Apache模組: mod_rewrite

/phpinfo.php">/phpinfo.php">http://<web server>/phpinfo.php

<?php
// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);
?>

cd var/www
gzip -d -c wordpress-2.8.2.tar.gz | tar xvf - 

mkdir -p wordpress/wp-content/languages
mv  WordPress_zh_TW_2.8.zip wordpress/wp-content/languages
cd  wordpress/wp-content/languages
unzip WordPress_zh_TW_2.8.zip
rm –rf WordPress_zh_TW_2.8.zip

mysql> create database wordpress ;
mysql> grant select,insert,update,delete,create,drop,index  on wordpress.* to  wp@localhost identified by 'wp123' ;
mysql> quit ;
shell> mysql wordpress -uwp -p

. Rename the wp-config-sample.php file to wp-config.phps
. Open wp-config.php in your favorite text editor and fill in your database details as explained in Editing wp-config.php to generate and use your secret key password.

正體中文語系檔安裝簡易說明
在 /wp-content 或 /wp-includes 目錄內建立一個名為 languages 的目錄。
將 zh_TW.mo 檔案置於該目錄內。
在文字編輯器內開啟你的 wp-config.php 檔案設定正體中文語系:
define ('WPLANG', 'zh_TW');
資料庫格式請使用 utf-8,另於 wp-config.php 檔案內設定資料庫連線資訊如下:
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', 'utf8_unicode_ci');


. Place the WordPress files in the desired location on your web server:
. Run the WordPress installation script by accessing wp-admin/install.php in your favorite web browser.

 

image

image s

admin/D^^BiukC4%S4

沒有留言: