首页 > 其他 > 详细

4-安装workpress

时间:2016-06-17 23:57:02      阅读:352      评论:0      收藏:0      [点我收藏+]
安装wordpress


软件下载
https://cn.wordpress.org/releases/

在mysql数据库中创建wordpress数据库
mysql> create database wordpress;
Query OK, 1 row affected (0.04 sec)


解压wordpress软件包

[root@localhost htdocs]# tar -zxvf wordpress-4.4.2-zh_CN.tar.gz 
[root@localhost htdocs]# ls
index.html  test.php  wordpress

[root@localhost wordpress]# cp wp-config-sample.php wp-config.php


配置文件wp-config.php
// ** MySQL 设置 - 具体信息来自您正在使用的主机 ** //
/** WordPress数据库的名称 */
define(‘DB_NAME‘, ‘wordpress‘);
/** MySQL数据库用户名 */
define(‘DB_USER‘, ‘root‘);
/** MySQL数据库密码 */
define(‘DB_PASSWORD‘, ‘endmoon‘);
/** MySQL主机 */
define(‘DB_HOST‘, ‘localhost‘);
/** 创建数据表时默认的文字编码 */
define(‘DB_CHARSET‘, ‘utf8‘);

访问网页,进入安装界面
注意:由于/usr/local/apache2/htdocs下面的wordpres为目录,所以这里需要修改一下apache的主配置文件,使得网页访问时可以自动识别index.html和index.php的网页文件
/etc/httpd/httpd.conf
<IfModule dir_module>
    DirectoryIndex index.html  index.php          
</IfModule>


技术分享

技术分享

技术分享









4-安装workpress

原文:http://www.cnblogs.com/endmoon/p/5595412.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!