Jump to content

require_once() error prompt suddenly


kinhoe

Recommended Posts

Need help urgent.

the website sudden prompt out error below:

 

Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/var/www/vhosts/db2020.co.uk/application/application/config/admin/config.live.php) is not within the allowed path(s): (/var/www/vhosts/db2020.co.uk/subdomains/admin/httpdocs:/tmp) in /var/www/vhosts/db2020.co.uk/subdomains/admin/httpdocs/index.php on line 11

 

Warning: require_once(/var/www/vhosts/db2020.co.uk/application/application/config/admin/config.live.php) [function.require-once]: failed to open stream: Operation not permitted in /var/www/vhosts/db2020.co.uk/subdomains/admin/httpdocs/index.php on line 11

 

Fatal error: require_once() [function.require]: Failed opening required '/var/www/vhosts/db2020.co.uk/application/application/config/admin/config.live.php' (include_path='.:') in /var/www/vhosts/db2020.co.uk/subdomains/admin/httpdocs/index.php on line 11

 

and also after this problem occur, trafic of this domain go overlimit.

 

how can i solve this problem? urgent.... website = https://db2020.co.uk/

 

thanks.

Link to comment
https://forums.phpfreaks.com/topic/217212-require_once-error-prompt-suddenly/
Share on other sites

below is the code /var/www/vhosts/db2020.co.uk/subdomains/admin/httpdocs/index.php on line 11

 

<?php
ini_set('memory_limit', '-1');



# Debug
error_reporting(E_ALL);
$PERSPECTIVE = "admin";

# Подключаем конфигурацию
require_once("/var/www/vhosts/db2020.co.uk/application/application/config/".$PERSPECTIVE."/config.live.php");
#ini_set("upload_tmp_dir",$config['path']['temp']);
# Создаем пути подключения
$paths = implode(PATH_SEPARATOR,
                    array (
                    $config['path']['libs'],
                    $config['path']['models'],
                    $config['path']['system'],
                    )
                 );
set_include_path($paths);

# Подключение главного системного класса
require 'Kernel.php';


# Запуск приложения
Kernel::run($config,$PERSPECTIVE);

 

 

Or which part will need to show u all to figure out the problem?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.