当我在浏览器中执行脚本时,我有一个非常奇怪的问题,正常的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
(/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()
是空的。服务器管理员很困惑。
还有谁有进一步的想法可能是什么原因?
非常感谢提前!