rsno Posted October 15, 2009 Report Share Posted October 15, 2009 Hab hier eine Lösung gefunden für alle die Probleme mit der Installation von XTC auf einem IIS haben. baut den Code ganz unten unmittelbar vor if (!defined('DIR_FS_DOCUMENT_ROOT')) { define('DIR_FS_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']); in der /xtc_installer/includes/application.php ein dann gibts kein Problem mehr mit der fehlenden $_SERVER['DOCUMENT_ROOT Variable: if(!isset($_SERVER['DOCUMENT_ROOT'])){ if(isset($_SERVER['SCRIPT_FILENAME'])){ $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF']))); }; }; if(!isset($_SERVER['DOCUMENT_ROOT'])){ if(isset($_SERVER['PATH_TRANSLATED'])){ $_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF']))); }; }; Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.