[Bug 231227] New: Apparent configuration error when installing Moodle with YAST
https://bugzilla.novell.com/show_bug.cgi?id=231227 Summary: Apparent configuration error when installing Moodle with YAST Product: openSUSE 10.2 Version: Final Platform: i586 OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: karl1c@hotmail.com QAContact: qa@suse.de 1. Installed Moodle using YAST (source: download.opensuse.org/distribution/10.2/repo/oss) 2. Went to http://localhost/moodle in FireFox. The page appears blank. All other pages appear blank. 3. Added display_errors = On display_startup_errors = On to /etc/php5/cli/php.ini and /etc/php5/apache2/php.ini (Why are there two of them?) 4. http://localhost/moodle now shows: Warning: include(): open_basedir restriction in effect. File(/etc/moodle-config.php) is not within the allowed path(s): (/srv/www/moodledata:/srv/www/htdocs/moodle/:/tmp) in /srv/www/htdocs/moodle/config.php on line 2 Warning: include(/etc/moodle-config.php): failed to open stream: Operation not permitted in /srv/www/htdocs/moodle/config.php on line 2 Warning: include(): Failed opening '/etc/moodle-config.php' for inclusion (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in /srv/www/htdocs/moodle/config.php on line 2 Notice: Undefined variable: CFG in /srv/www/htdocs/moodle/index.php on line 40 Notice: Trying to get property of non-object in /srv/www/htdocs/moodle/index.php on line 40 Warning: require_once(): open_basedir restriction in effect. File(/course/lib.php) is not within the allowed path(s): (/srv/www/moodledata:/srv/www/htdocs/moodle/:/tmp) in /srv/www/htdocs/moodle/index.php on line 40 Warning: require_once(/course/lib.php): failed to open stream: Operation not permitted in /srv/www/htdocs/moodle/index.php on line 40 Fatal error: require_once(): Failed opening required '/course/lib.php' (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in /srv/www/htdocs/moodle/index.php on line 40 5. Changed line 65 from: php_admin_value open_basedir "/srv/www/moodledata:/srv/www/htdocs/moodle/:/tmp:" to: php_admin_value open_basedir /srv/www/moodledata:/srv/www/htdocs/moodle/:/tmp:/etc/moodle-config.php" in: /etc/apache2/conf.d/moodle_include.conf and this appears to fix the problem -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231227 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |lrupp@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231227 ------- Comment #1 from karl1c@hotmail.com 2007-01-04 12:39 MST ------- Created an attachment (id=111555) --> (https://bugzilla.novell.com/attachment.cgi?id=111555&action=view) Suggested fixes to get MOODLE working -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231227 lrupp@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |karl1c@hotmail.com ------- Comment #2 from lrupp@novell.com 2007-01-19 03:00 MST ------- Thanks for the report! (Sorry for the late reply - vacation improves my mail- and bugzilla lists only... ;-) The basedir restrictions came from a "last minute" fix - I'm sorry, that they create those problems. :-( * php5-mbstring, gd should be added via dependencies. * "Take the / out after moodle" => ok. Should be fixed with the updated package. * php_value memory_limit "32M" => If you're shure, I've no problem with that => ok * Add /etc/moodle-config.php to openbasedir => Suggestion: create a new "/srv/www/inc" directory outside the moodle-rootdir, which is not visible by apache but included in the basedir restrictions. So we get: - a "secure" config.php which is not visible via webserver - a "clean" basedir restriction so php scripts couldn't see more than they need What do you think? - a "default" place for such config files for other php applications What do you think about the latest point? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231227 judas_iscariote@shorewall.net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |judas_iscariote@shorewall.net ------- Comment #3 from judas_iscariote@shorewall.net 2007-01-30 23:43 MST ------- mea culpa :-) I did not saw that the moodle configuration was dropped in /etc... Lars: yes, your suggestions are correct and no php_admin_value open_basedir /srv/www/moodledata:/srv/www/htdocs/moodle/:/tmp:/etc/moodle-config.php" --> the last path does not seems correct to me. yes, 32 MB memory limit is reasonable, with php5.2.1 the default memory limit has been raised to 128MB (! a bit exccesive IMHO) and yes, packages of PHP aaps, has many dependency problems atm, Im working in an automated (or half-automated) check for that, but may take some time..;) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=231227 lrupp@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|karl1c@hotmail.com | Resolution| |FIXED ------- Comment #4 from lrupp@novell.com 2007-01-31 02:03 MST ------- Thanks for your answers, Christian! So I take /srv/www/inc for the place of the moodle configuration and added: php_admin_value open_basedir /srv/www/moodledata:/srv/www/htdocs/moodle/:/tmp:/srv/www/inc Fixed package (1.7.1) submitted to stable. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com