无法解释的open_basedir限制

时间:2013-12-18 14:08:34

标签: php open-basedir

当我在浏览器中执行脚本时,我有一个非常奇怪的问题,正常的PHP包括。在shell中一切正常。所以我认为这是一个权限问题或php配置问题,但事实证明并非如此。真正奇怪的是,脚本在大约一小时前运行得很好。

<?php
// sub/cron.php
error_reporting(E_ALL);
ini_set('display_errors', 1);

include '../config.php';
include '../facebook.php';
include '../ez_sql_core.php';
include '../ez_sql_mysql.php';
die();

要包含的文件位于httpdocs中,httpdocs / sub中的cron.php

    php.ini中的
  • open_basedir肯定设置正确(/srv/www/vhosts/xxxxx/httpdocs:/tmp)
  • 我删除了我插入的die();以下的所有其他php代码以排除任何其他php问题
  • 文件权限均已正确设置
  • 我也试过绝对路径
  • 我读了很多其他线程!

错误如下:

Warning: include(): open_basedir restriction in effect. File() is not within the allowed path(s): (/srv/www/vhosts/xxxxx/httpdocs:/tmp) in /srv/www/vhosts/xxxxx/httpdocs/iblink/mobile/cron.php on line 9
Warning: include(): open_basedir restriction in effect. File() is not within the allowed path(s): (/srv/www/vhosts/j04/api.appworkx.de/httpdocs:/tmp) in /srv/www/vhosts/j04/api.appworkx.de/httpdocs/iblink/mobile/cron.php on line 10
Warning: include(): open_basedir restriction in effect. File() is not within the allowed path(s): (/srv/www/vhosts/j04/api.appworkx.de/httpdocs:/tmp) in /srv/www/vhosts/xxxxx/httpdocs/iblink/mobile/cron.php on line 11
Warning: include(): open_basedir restriction in effect. File() is not within the allowed path(s): (/srv/www/vhosts/xxxxx/httpdocs:/tmp) in /srv/www/vhosts/j04/api.appworkx.de/httpdocs/iblink/mobile/cron.php on line 12

同样奇怪的是File()是空的。服务器管理员很困惑。

还有谁有进一步的想法可能是什么原因?

非常感谢提前!

0 个答案:

没有答案