Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

open_basedir restriction in effect File is not within the allowed path

Tags:

php

apache

joomla

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/futbol/data:.:/tmp:/usr/share/php:/usr/share/pear:/usr/local/bin) in /home/futbol/data/www/futbol.kg/libraries/joomla/filesystem/folder.php on line 451

I get this Warning in joomla, after I log in, i really don't have idea on how to fix this, maybe there is need to change some server settings, but which one?, thanks

like image 877
Noob Kraker Avatar asked Oct 12 '25 15:10

Noob Kraker


2 Answers

Check your configuration.php file. Ensure that the log and tmp entries look like

public $log_path = '/home/futbol/data/www/futbol.kg/logs';
public $tmp_path = '/home/futbol/data/www/futbol.kg/tmp';

If these entries are correct, and you still get that message, disable all non-core system plugins, as it then must be one of them causing the problem.

like image 56
nibra Avatar answered Oct 14 '25 06:10

nibra


open_basedir restriction in effect

This means that you've set the open_basedir setting in your php.ini; and joomla is trying to read something that's not in the configured basedir.

Remove open_basedir from your php.ini. This gives a false sense of security (it can easily be bypassed), and causes more troubles than it solves.

like image 42
Arnaud Le Blanc Avatar answered Oct 14 '25 04:10

Arnaud Le Blanc