open_basedir prohibits opening %s¶
Description¶
open_basedir is a PHP directive which limits access of the inclusion functions, such as include and require, to include files which are outside the path specified with open_basedir.
Example¶
<?php
include '/private/folder/secret.php';
?>
Solutions¶
Update the
open_basedirdirective to allow access to the file.Update the inclusion path to target a file that falls within the paths in the
open_basedirdirective.
Changed Behavior¶
This error may appear following an evolution in behavior, in previous versions. See ` <https://php-changed-behaviors.readthedocs.io/en/latest/behavior/.html>`_.