LoginLogin About

Support » Knowledge Base » General questions » Scripts troubleshooting »

Message "open_basedir restriction in effect"

If WebAsyst is installed on your own server or on a web hosting, the following diagnostic message may appear in your browser:

Warning: open_basedir restriction in effect. File ... is not within the allowed path(s):
(/path/to/dir1:/path/to/dir2) in /path/to/dir/filename.php on line 14

This message means that the path to the WebAsyst installation directory is not included into the list of allowed server directories that may be accessed by PHP scripts. The list of allowed directories is specified in the open_basedir parameter in the PHP configuration.

  1. One of the ways to resolve this issue is to add the WebAsyst installation directory to the value of the open_basedir parameter.

    On a UNIX/Linux/FreeBSD server paths should be separated by a colon, e.g.:

    open_basedir =/home/vhosts:/usr/share/php/pear/:/tmp

    On a Windows server the semicolon should be used:

    open_basedir = C:Inetpub;C:WindowsTEMP
  2. Another option to avoid the problem is to completely cancel the restrictions set by the open_basedir parameter by changing its value to none:
    open_basedir = none