• 各位大神,最近我的wordpress blog站点页面最上面莫名其妙出现了两行这样的警告提示:

    Warning: file_get_contents(): open_basedir restriction in effect. File(/etc/httpd/sites-enabled-user/httpd-vhost.conf-user) is not within the allowed path(s): (/var/services/web:/tmp:/var/services/tmp) in /volume1/web/wordpress/wp-config.php on line 96

    Warning: file_get_contents(/etc/httpd/sites-enabled-user/httpd-vhost.conf-user): failed to open stream: Operation not permitted in /volume1/web/wordpress/wp-config.php on line 96

    我查看了wp-config.php的96行,内容是:$virtual_host_file = file_get_contents(“/etc/httpd/sites-enabled-user/httpd-vhost.conf-user”);

    但是在我站点下的wordpress\etc目录中却没有这个httpd目录,也找不到httpd-vhost.conf-user文件。请问到底是什么问题呢?如何解决?谢谢!

查看 5 回复 - 1 至 5 (总计 5)
  • 诗语

    (@f2010525)

    你 WordPress 的 Apache 主机配置有问题,所以 wp-config.php 报错,可以从新配置下服务器环境。

    帖子发表于 lantex

    (@lantex)

    抱歉我是在群晖的NAS上用wordpress套件搭建的。数据库好像是基于MariaDB 5 和 MariaDB 10。
    安装wordpress套件时配套安装了php 5.6和php 7.0。
    我是小白,不是太懂apache。能请您帮忙说的详细一些吗?服务器环境重新配置一般都需要做哪些内容?
    十分感谢!

    帖子发表于 lantex

    (@lantex)

    群晖的NAS还有一个phpMyAdmin管理套件,可以通过登录PHP管理界面来进行重新配置吗?谢谢!

    帖子发表于 lantex

    (@lantex)

    哦我刚发现好像还安装了Apache Http Server2.2,是需要用这个重置吗?谢谢!

    诗语

    (@f2010525)

    Apache Http Server2.2 就是这个东西,其实 WordPress 最好的环境是 Nginx+Linux+PHP+MySQL ,当然现在的 MariaDB 也是兼容MySQL的。

    具体的如何配置不是很清楚你服务器,关于 WordPress 的最佳运行环境可以看下我们的这篇文章:

    http://one.weixiaoduo.com/1615.html

查看 5 回复 - 1 至 5 (总计 5)
  • 话题 ‘httpd-vhost.conf-user不明问题求助’不再接受新回复。