ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 在Centos上安装wordpress

在Centos上安装wordpress

Linux操作系统 作者:IT王大王 时间:2015-01-28 10:28:40 0 删除 编辑
  1. yum install wordpress
  2. cat /usr/share/doc/wordpress-4.1/README.fedora(按照里面的步骤建立数据库)
  3. 访问http://host/wordpress 发现这个错误 "client denied by server configuration: /usr/share/wordpress/"
  4. 检查 vi /etc/httpd/logs/error_log 发现 "client denied by server configuration: /usr/share/wordpress/" 说明apache已经把请求转到指定目录,但是由于apache的设置被禁止了
  5. 检查 vi /etc/httpd/conf/httpd.conf 没找到wordpress设置,但是发现"Include conf.d/*.conf"
  6. 进一步检查 vi /etc/httpd/conf.d/wordpress.conf 发现默认选项是 "Deny from All" 只允许本机的。所以改成 "Allow from All"就好
  7. service httpd reload

http://ahmed.amayem.com/installing-wordpress-step-2-setting-up-mysql-for-wordpress-using-command-line-mysql-client-on-linux-centos-6/

1. sudo vi /etc/wordpress/wp-config.php 设置数据库名和用户名

2. mysql> grant all privileges on wordpress.* to wordpress@localhost identified by 'wordpress';

3. http://tt/wordpress/wp-admin/install.php

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30094666/viewspace-1417833/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2015-01-06

  • 博文量
    58
  • 访问量
    67133