Einzelnen Beitrag anzeigen

Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#1

[PHP] SAFE_MODE / open_basedir restriction

  Alt 4. Dez 2005, 15:30
Ich habe folgende Zeile in meinem PHP Script:
Code:
<?php
  include "/includes/nav.inc";
?>
Und ich bekomme da folgende Meldung vom Server:
Zitat:
Warning: main(): SAFE MODE Restriction in effect. The script whose uid is 10015 is not allowed to access ./includes/nav.inc owned by uid 0 in /home/httpd/vhosts/bastelfratz.de/httpdocs/index.php on line 12
open_basedir ist wie folgt konfiguriert:
Zitat:
/home/httpd/vhosts/bastelfratz.de/httpdocs:/tmp
Das Verzeichnis includes ist ein Unterverzeichnis von httpdocs. Und ohne Slash am Anfang:
Code:
<?php
  include "includes/nav.inc";
?>
oder kompletten Pfad:
Code:
<?php
  include "/home/httpd/vhosts/bastelfratz.de/httpdocs/includes/nav.inc";
?>
geht es auch nicht.

und bei
Code:
$handle=opendir($dir);
bekomme ich
Zitat:
Warning: opendir(): open_basedir restriction in effect. File(../Laternen) is not within the allowed path(s): (/home/httpd/vhosts/bastelfratz.de/httpdocs:/tmp) in /home/httpd/vhosts/bastelfratz.de/httpdocs/gallery.php on line 9
Mit $dir = "/Laternen"; und allen Kombinationen wie bei dem include Problem

Und echo $DOCUMENT_ROOT gibt gar nichts aus.

Was ist da los und was kann ich da machen?
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat