116480
Oct 01, 2014
3009
6
0
openbasedir restriction in effect. File proc loadavg is not within the allowed path C:inetpub in Cinetpubwwwrootlibmoodlelib.php
Hallo Zusammen,
ich habe ein Program Moodle und habe Debugging aktiviert.
Weiss wer was man in PHP.ini oder REchte bei so einer Meldung machen kann ?
open_basedir restriction in effect. File(/proc/loadavg) is not within the allowed path(s): (C:\inetpub) in C:\inetpub\wwwroot\lib\moodlelib.php
Unten im Browser kommt immer:
Warning: is_readable(): open_basedir restriction in effect. File(/proc/loadavg) is not within the allowed path(s): (C:\inetpub) in C:\inetpub\wwwroot\lib\moodlelib.php on line 8969 Warning: is_executable(): open_basedir restriction in effect. File(/usr/bin/uptime) is not within the allowed path(s): (C:\inetpub) in C:\inetpub\wwwroot\lib\moodlelib.php on line 8972
Also das ist vor dem Upload auch schon so.
Zeile 8969:
if (is_readable('/proc/loadavg') && $loadavg = @File('/proc/loadavg')) {
Zeile 8972:
} else if ( function_exists('is_executable') && is_executable('/usr/bin/uptime') && $loadavg = `/usr/bin/uptime` ) {
Das Windows Log schreibt leider nichts spezielles.
Gruss
Ralf
In der PHP.ini steht für Open Base Dir c:\Inetpub
ich habe ein Program Moodle und habe Debugging aktiviert.
Weiss wer was man in PHP.ini oder REchte bei so einer Meldung machen kann ?
open_basedir restriction in effect. File(/proc/loadavg) is not within the allowed path(s): (C:\inetpub) in C:\inetpub\wwwroot\lib\moodlelib.php
Unten im Browser kommt immer:
Warning: is_readable(): open_basedir restriction in effect. File(/proc/loadavg) is not within the allowed path(s): (C:\inetpub) in C:\inetpub\wwwroot\lib\moodlelib.php on line 8969 Warning: is_executable(): open_basedir restriction in effect. File(/usr/bin/uptime) is not within the allowed path(s): (C:\inetpub) in C:\inetpub\wwwroot\lib\moodlelib.php on line 8972
Also das ist vor dem Upload auch schon so.
Zeile 8969:
if (is_readable('/proc/loadavg') && $loadavg = @File('/proc/loadavg')) {
Zeile 8972:
} else if ( function_exists('is_executable') && is_executable('/usr/bin/uptime') && $loadavg = `/usr/bin/uptime` ) {
Das Windows Log schreibt leider nichts spezielles.
Gruss
Ralf
In der PHP.ini steht für Open Base Dir c:\Inetpub
Please also mark the comments that contributed to the solution of the article
Content-Key: 250702
Url: https://administrator.de/contentid/250702
Printed on: April 24, 2024 at 21:04 o'clock
6 Comments
Latest comment
Hallo obtserver,
habe gerade eine hand im gips, darum pfeife ich ein wenig auf die rechtschreibung
Also, open_basedir ist ein schutzmechanismus mit dem die php-scripte in den angegebenen verzeichnissen "gefangen" werden. Bei dir hat php also nur zugriff auf die daten in dem verzeichnis c:\inetpub.
Und ohne zu wisen was du da tust, soltest due die einstwlung auch nicht ändern, da sonst auf wichtige systemdateien zugegrifen werden könnte.
Du hast aber noch ein problem !
(Icg kenne moodle nicht !)
Aber moodle möchte auf die dateien /proc/loadavg und /usr/bin/uptime zugreifen.
1. Müssten diese im openbasedir liegen damit der zugriff gestattet ist UND
2. Das sind zwei LINUX dateien, die gibt es unter windoes garnicht !
Kann moodle auf einem windowssrver verwedet werden ?
Schönen gruß
~arano
habe gerade eine hand im gips, darum pfeife ich ein wenig auf die rechtschreibung
Also, open_basedir ist ein schutzmechanismus mit dem die php-scripte in den angegebenen verzeichnissen "gefangen" werden. Bei dir hat php also nur zugriff auf die daten in dem verzeichnis c:\inetpub.
Und ohne zu wisen was du da tust, soltest due die einstwlung auch nicht ändern, da sonst auf wichtige systemdateien zugegrifen werden könnte.
Du hast aber noch ein problem !
(Icg kenne moodle nicht !)
Aber moodle möchte auf die dateien /proc/loadavg und /usr/bin/uptime zugreifen.
1. Müssten diese im openbasedir liegen damit der zugriff gestattet ist UND
2. Das sind zwei LINUX dateien, die gibt es unter windoes garnicht !
Kann moodle auf einem windowssrver verwedet werden ?
Schönen gruß
~arano