RedHat Enterprise 6.5環境下wordpress網站部署
第一步:下載下傳wordpress網站壓縮包并解壓
[root@localhost data]# wget http://cn.wordpress.org/wordpress-3.9-zh_CN.zip -O wordpress.zip
[root@localhost data]# unzip wordpress.zip
[root@localhost data]# mkdir /var/www/html/linuxcast
[root@localhost data]# mv wordpress/* /var/www/html/linuxcast
第二步:修改網站檔案的所有者
[root@localhost linuxcast]# cd ..
[root@localhost html]# chown -R apache.root linuxcast/
第三步:部署wordpress(linuxcast)網站
1,登入mysql資料庫,并建立
[root@linuxcast Desktop]# mysql -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.71 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 linuxcast3_9;
Query OK, 1 row affected (0.00 sec)
mysql> quit
Bye
[root@linuxcast Desktop]#
2,修改/etc/hosts檔案,添加:
192.168.8.86 linuxcast.net www.linuxcast.net
3,通路該站點并安裝wordpress網站
[root@localhost ~]# firefox http://www.linuxcast.net/linuxcast &
[1] 6185
4,相關設定選項:
資料庫名:linuxcast3_9
使用者名:root
密碼:linuxcast
資料庫主機:localhost
表字首:wp_
注:完成這一步的時候,在網站目錄(/var/www/html/linuxcast)下會産生wp-config.php檔案,如果想重新安裝,删除該檔案重新安裝即可!
點選送出→進行安裝→
站點标題:Zhangsp's Web
使用者名:zhangsp
輸入密碼:linuxcast
電子郵件:[email protected]
安裝→完成
安裝過程截圖:
<a href="http://s3.51cto.com/wyfs02/M00/45/37/wKioL1PkZZ7iiXPRAAHi1g74Zfs932.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M02/45/37/wKiom1PkZIXQO4gwAAK8LPwODFw878.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M01/45/37/wKioL1PkZZ6gJJmiAAKp96zuCrY376.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M00/45/37/wKiom1PkZIXwQbVTAAHaPrmqtzI092.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M02/45/37/wKioL1PkZZ7xPoXIAAKzuoAghqs693.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M01/45/37/wKiom1PkZIXTHn_dAAHwxaYc7N8550.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M00/45/37/wKioL1PkZZ-TW05lAAHDfonW5B8951.jpg" target="_blank"></a>
<a href="http://s3.51cto.com/wyfs02/M02/45/37/wKiom1PkZIbDs2PyAASum3LlUOI196.jpg" target="_blank"></a>
5,背景管理
登入背景:
http://www.linuxcast.net/linuxcast/wp-login.php
http://www.linuxcast.net/linuxcast/wp-admin/
使用者名為:zhangsp
注:wordpress網站的環境必須滿足下面的要求:
php5.2.4或更新版本
MySQL5.0或更新版本
Apache mod_rewrite子產品
本文轉自 murongqingqqq 51CTO部落格,原文連結:http://blog.51cto.com/murongqingqqq/1537345