Page MenuHomePhabricator

open_basedir restriction
Closed, InvalidPublic

Description

Author: neo_ted

Description:
I've uploaded all the files and got to the second page of installation and I get
the following errors.

Warning: main(): open_basedir restriction in effect.
File(\\192.168.1.16\webfiles\files\2007-2\1295267/install-utils.inc) is not
within the allowed path(s): (.) in
\\192.168.1.16\webfiles\files\2007-2\1295267\config\index.php on line 43

Warning: main(install-utils.inc): failed to open stream: Operation not permitted
in \\192.168.1.16\webfiles\files\2007-2\1295267\config\index.php on line 43

Fatal error: main(): Failed opening required 'install-utils.inc'
(include_path='.;\\192.168.1.16\webfiles\files\2007-2\1295267;\\192.168.1.16\webfiles\files\2007-2\1295267/includes;\\192.168.1.16\webfiles\files\2007-2\1295267/languages')
in \\192.168.1.16\webfiles\files\2007-2\1295267\config\index.php on line 43

I've checked and install-utils.inc has been uploaded.


Version: 1.9.x
Severity: normal
OS: Windows XP
Platform: PC
URL: http://h1.ripway.com/silvermelocowiki/

Details

Reference
bz9000

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 9:34 PM
bzimport set Reference to bz9000.
bzimport added a subscriber: Unknown Object (MLST).

This is a problem with the configuration of php and/or the web server. contact
your hosting people.

neo_ted wrote:

Instead is it just possible that I get a new server?

ayg wrote:

You need to have a PHP configuration set up with open_basedir off. Most hosts
presumably run such a configuration, so it may be that switching will get you a
host that doesn't have the restriction. You could ask before you buy. But in
any case, this isn't something we can do anything about.

Generally open_basedir will work, but this seems to be a particularly broken
configuration.

  1. The web root seems to be using an UNC path, which seems very likely to break

things
with PHP and/or the web server and/or other software.

  1. The open_basedir path appears to be "." (current directory) which:

a) will inherently not work with the installer
b) seems very likely to break the rest of the wiki
c) seems extremely fragile when mixed with UNC paths

If you operate the server yourself, I would recommend disabling open_basedir
and going from there; if you don't operate the server, contact your hosting
provider and see if they can set open_basedir to an actual directory value (or
remove it)