环境
系统:CentOS 6.7
软件:wordpress-3.9-zh_CN.tar.gz
准备
-
下载wordpress源码包
地址:https://wordpress.org -
安装nginx
参见:http://www.jianshu.com/p/affac5f2d56e
安装完成后,启动nginx -
安装mysql
参见:http://www.jianshu.com/p/17ca1b54b41c
安装完成后,启动mysql -
安装php-fpm
参见:http://www.jianshu.com/p/a40b5cc28da7
安装完成后,启动php-fpm
mysql配置
-
创建wordpress数据库
> CREATE DATABASE wordpress;
-
创建wordpress账户
> CREATE USER wordpress@localhost; > SET PASSWORD FOR wordpress@localhost=PASSWORD("wordpress@123"); > GRANT ALL PRIVILEGES ON wordpress.* TO wordpress@localhost IDENTIFIED BY 'wordpress@123'; > FLUSH PRIVILEGES;
wordpress安装配置
-
安装
# tar -xzvf latest.tar.gz # mv wordpress /data/www/your.site.com
-
配置
# cd /data/www/your.site.com/ # cp wp-config-sample.php wp-config.php # vim wp-config.php define('DB_NAME', 'wordpress'); define('DB_USER', 'wordpress'); define('DB_PASSWORD', 'wordpress@123'); define('DB_HOST', '127.0.0.1');
nginx连接php-fpm
参见:http://www.jianshu.com/p/9a0a766d0e04
wordpress初始化
输入http://10.10.10.10/wp-admin/install.php 进入安装页面,完成安装
网友评论