kinhoe Posted October 29, 2010 Share Posted October 29, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/217212-require_once-error-prompt-suddenly/ Share on other sites More sharing options...
Pikachu2000 Posted October 29, 2010 Share Posted October 29, 2010 We'd need to see the part of the code that's causing the error. Quote Link to comment https://forums.phpfreaks.com/topic/217212-require_once-error-prompt-suddenly/#findComment-1128107 Share on other sites More sharing options...
Ninjakreborn Posted October 29, 2010 Share Posted October 29, 2010 This is most likely a PHP or server internal setting issue. I would need more information regarding the code used to be able to help further. Reference Links http://www.mydigitallife.info/2007/03/15/php-scripts-open_basedir-restriction-in-effect-error/ http://www.karakas-online.de/forum/viewtopic.php?t=1586 http://www.sixapart.com/movabletype/kb/dynamic/open_basedir_re.html http://www.geeklog.net/forum/viewtopic.php?showtopic=28107 http://www.google.com/#sclient=psy&hl=en&site=&source=hp&q=open_basedir+restriction+in+effect&aq=f&aqi=&aql=&oq=&gs_rfai=&pbx=1&fp=ddfbf15c2e2f4021 Quote Link to comment https://forums.phpfreaks.com/topic/217212-require_once-error-prompt-suddenly/#findComment-1128158 Share on other sites More sharing options...
kinhoe Posted October 30, 2010 Author Share Posted October 30, 2010 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? Quote Link to comment https://forums.phpfreaks.com/topic/217212-require_once-error-prompt-suddenly/#findComment-1128327 Share on other sites More sharing options...
Pikachu2000 Posted October 31, 2010 Share Posted October 31, 2010 This was working previously? Did you ask you hosting provider if they've made any changes recently? That would be the likely cause of the error. Quote Link to comment https://forums.phpfreaks.com/topic/217212-require_once-error-prompt-suddenly/#findComment-1128557 Share on other sites More sharing options...
kinhoe Posted November 1, 2010 Author Share Posted November 1, 2010 Ya. It work last time. But after i have just view some of the file then it sudden become like this. Someone told me that the runtime script affect the open_dir, but had no idea how to fix this. Quote Link to comment https://forums.phpfreaks.com/topic/217212-require_once-error-prompt-suddenly/#findComment-1128808 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.