WordPress 台灣正體中文網站
http://tw.wordpress.org/
安裝參考
http://tw.wordpress.org/txt-install/
下載
http://tw.wordpress.org/wordpress-3.7-zh_TW.tar.gz
http://tw.wordpress.org/wordpress-3.7-zh_TW.zip
安裝
yum -y install php php-mysql mysql httpd mysql-server
chkconfig httpd on
chkconfig mysqld on
service mysqld restart
service httpd restart
# 替 MySQL 的 root 帳號設定密碼
/usr/bin/mysql_secure_installation
# 建立 WordPress 系統使用的資料庫,稱為 wordpressdb,連線帳號 wordpresser,密碼 123456
(可以依自己喜好修改)
[root@localhost ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 5.1.69 Source distribution
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database wordpressdb;
Query OK, 1 row affected (0.00 sec)
mysql> grant all privileges on wordpressdb.* to wordpresser@localhost identified by '123456';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
[root@localhost ~]#
wget http://tw.wordpress.org/wordpress-3.7-zh_TW.tar.gz
tar xzvf wordpress-3.7-zh_TW.tar.gz -C /var/www/html
chmod a+w /var/www/html/wordpress
# 啟動瀏覽器,連上網站
firefox httpd://192.168.128.20/wordpress
(下圖)
(下圖) 如果設定檔案 wp-config.php 沒有設定寫入權限,會出現下面錯誤
( 小弟剛剛是 對整個網站 先開啟 寫入權限,命令 chmod a+w /var/www/html/wordpress )
(下圖) 如果順利是看到這個畫面
chmod a-w /var/www/html/wordpress
(完)
沒有留言:
張貼留言