Code: Select all
Warning: realpath(): open_basedir restriction in effect. File(/home/httpd/vhosts/mydomain.com) is not within the allowed path(s): (/home/httpd/vhosts/mydomain.com/httpdocs/:/tmp/) in /home/httpd/vhosts/mydomain.com/httpdocs/admin/controller/common/security.php on line 26
Code: Select all
$data['document_root'] = str_replace('\\', '/', realpath($this->request->server['DOCUMENT_ROOT'] . '/../') . '/');<br />
Code: Select all
$data['document_root'] = str_replace('\\', '/', realpath($this->request->server['DOCUMENT_ROOT'] . '') . '/');
Is this a bug or just some security problem on my webserver? Would my code change affect some other function?