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)

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据