Last modified: 2010-05-15 14:35:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 1812 - open_basedir restriction with 1.4
open_basedir restriction with 1.4
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
unspecified
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-04 12:49 UTC by ccf.herzog
Modified: 2010-05-15 14:35 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
fixes the paths that they work with open_basedir (3.91 KB, patch)
2005-07-14 13:33 UTC, gentoo
Details

Description ccf.herzog 2005-04-04 12:49:30 UTC
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*
Comment 1 Brion Vibber 2005-04-04 22:50:48 UTC
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.
Comment 2 ccf.herzog 2005-04-06 14:50:45 UTC
(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.
Comment 3 Brion Vibber 2005-04-22 11:31:18 UTC
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.
Comment 4 ccf.herzog 2005-04-24 20:45:14 UTC
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?
Comment 5 gentoo 2005-07-14 13:33:58 UTC
Created attachment 711 [details]
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
Comment 6 Antoine "hashar" Musso (WMF) 2005-08-25 01:12:13 UTC
Issue does not happen with HEAD (1.6a)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links