Jump to content
xt:Commerce Community Forum

Installation Au?erhalb Von Document_root


StefanK

Recommended Posts

Wenn man das XTCommerce-Verzeichnis separat von DOCUMENT_ROOT installiert und einen entsprechenden Alias in der httpd.conf des Apache eintr?gt, funktioniert nichts, weil die Installationsroutine die Pfade nicht passend setzt.

Geklappt hat es bei mir mit folgender ?nderung zu Beginn der Datei ...\xtcommerce\xtc_installer\includes\application.php, die wohl so oder ?hnlich in das Installationspaket ?bernommen werden sollte:

 if (isset($HTTP_SERVER_VARS['SCRIPT_FILENAME'])) { // Apache

  $document_root = dirname(dirname($_SERVER['SCRIPT_FILENAME']));

  $local_install_path = '/'.basename($document_root).'/';

  $document_root = dirname($document_root);

 } else if (isset($_SERVER['PATH_TRANSLATED'])) { // MS-IIS

  $document_root = dirname(dirname($_SERVER['PATH_TRANSLATED']));

  $local_install_path = '/'.basename($document_root).'/';

  $document_root = dirname($document_root);

 } else {

  $local_install_path=dirname(dirname($_SERVER['PHP_SELF']));

  $document_root = $_SERVER['DOCUMENT_ROOT'];

 }


 if (!defined('DIR_FS_DOCUMENT_ROOT')) {

   define('DIR_FS_DOCUMENT_ROOT', $document_root);

   define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . $local_install_path);

 }

statt
 if (!defined('DIR_FS_DOCUMENT_ROOT')) {

   define('DIR_FS_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']);

   $local_install_path=str_replace('/xtc_installer','',$_SERVER['PHP_SELF']);

   $local_install_path=str_replace('index.php','',$local_install_path);

   $local_install_path=str_replace('install_step1.php','',$local_install_path);

   $local_install_path=str_replace('install_step2.php','',$local_install_path);

   $local_install_path=str_replace('install_step3.php','',$local_install_path);

   $local_install_path=str_replace('install_step4.php','',$local_install_path);

   $local_install_path=str_replace('install_step5.php','',$local_install_path);

   $local_install_path=str_replace('install_step6.php','',$local_install_path);

   $local_install_path=str_replace('install_step7.php','',$local_install_path);

   $local_install_path=str_replace('install_finished.php','',$local_install_path);

   define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . $local_install_path);

 }
Mit PHP5 geht wohl noch nicht viel:
Fatal error: Cannot re-assign $this in ...\xtcommerce\admin\includes\classes\upload.php on line 33

PS: Warum ist bei der Installation die Auswahlbox f?r das Land eigentlich nicht mit Deutschland vorbelegt?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...