8 月 152013
 

[root@localhost ~]# yum install httpd php php-mysql php-pdo mysql-server
[root@localhost ~]# yum install wget

[root@localhost ~]# wget http://cn.wordpress.org/wordpress-3.6-zh_CN.tar.gz
[root@localhost ~]# tar xzf wordpress-3.6-zh_CN.tar.gz
[root@localhost ~]# mv wordpress/* /var/www/html/

[root@localhost ~]# vi /etc/httpd/conf/httpd.conf
ServerName 192.168.111.131

[root@localhost ~]# apachectl start
[root@localhost ~]# netstat -lutn |grep 80
tcp 0 0 :::80 :::* LISTEN
[root@localhost ~]#

[root@localhost ~]# service mysqld start
[root@localhost ~]# /usr/bin/mysqladmin -u root password ‘mysqlpass’
mysql> create database wordpress;
Query OK, 1 row affected (0.00 sec)

mysql> grant all on wordpress.* to wpuser;
Query OK, 0 rows affected (0.00 sec)

mysql> grant all on wordpress.* to wpuser@localhost;
Query OK, 0 rows affected (0.00 sec)

mysql> set password for wpuser@localhost=password(‘wppass’);
Query OK, 0 rows affected (0.00 sec)