Page MenuHomePhabricator

open_basedir restriction with 1.4
Closed, ResolvedPublic

Description

Author: ccf.herzog

Description:
I got the error quoted below the moment when trying to install mediawiki 1.4 on
a remote linux system I have no root privileges on (webspace provider). However,
installing mediawiki 1.38 worked without any problems. The php version they use
is 1.5.

*Warning*: main() [function.main
http://www.ottomanbiography.net/wiki_140/config/function.main]: open_basedir
restriction in effect. File(/convertLinks.inc) is not within the allowed
path(s): (/home/www/web12/) in
*/home/www/web12/html/wiki_140/maintenance/updaters.inc* on line *9*

*Warning*: main(convertLinks.inc) [function.main
http://www.ottomanbiography.net/wiki_140/config/function.main]: failed to open
stream: Operation not permitted in
*/home/www/web12/html/wiki_140/maintenance/updaters.inc* on line *9*

*Fatal error*: main() [function.require
http://www.ottomanbiography.net/wiki_140/config/function.require]: Failed
opening required 'convertLinks.inc' (include_path='.:') in
*/home/www/web12/html/wiki_140/maintenance/updaters.inc* on line *9*


Version: unspecified
Severity: normal
OS: Linux
Platform: PC

Details

Reference
bz1812

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:20 PM
bzimport set Reference to bz1812.
bzimport added a subscriber: Unknown Object (MLST).

If there ever was a PHP 1.5, it would be so old that MediaWiki would definitely not run on it.

If it's trying to open "/convertLinks.inc" then you've got some other problem. Your web provider
may have a badly broken PHP or a misconfigured PHP which disallows basic necessary file
operations. Please find out which version and which operations are disabled before continuing.

ccf.herzog wrote:

(In reply to comment #1)

If there ever was a PHP 1.5, it would be so old that MediaWiki would

definitely not run on it.

Sorry for that. It is PHP 5.0.2-1.dotdeb.5. No Safe mode active.

Removing blocker tag as this seems a rare condition.

Can you test the 1.4.2 release and see if this still happens? The include_path
usage in the installer has been changed a bit.

ccf.herzog wrote:

Unfortunately I have no longer access to the environment in question because my
stuff was moved to another server with PHP 4.3 on it. There everything just
works fine. Was perhaps really a php configuration problem. Sorry for the
inconvenience. Should resolution set to IINVALID or WORKSFORME?

gentoo wrote:

fixes the paths that they work with open_basedir

php_admin_flag engine on
php_admin_value safe_mode On
php_admin_value open_basedir /PATHTOWIKI/
php_admin_value upload_tmp_dir /PATHTOUPLAODDIR
php_admin_value session_save_path /PATHTOSESSIONSAVEDIR

Attached:

Issue does not happen with HEAD (1.6a)