#1 (permalink)  
Alt 27.09.2004, 21:03
 
Registriert seit: 27.09.2004
Beiträge: 3
Daumen runter

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:
Code:
 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
Code:
 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:
Code:
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 27.09.2004, 21:08
Benutzerbild von mzanier
xt:Commerce GmbH, Geschäftsführung
 
Registriert seit: 18.04.2003
Beiträge: 27.414
Standard

php5 scheitert nur an einer zeile bei 2.0 und an keiner in 3.0.

dazu gibs jedoch genug bei der suche.
__________________
xt:Commerce Helpdesk
xt:Commerce Blog

xt:Commerce Warenwirtschaft

###

Offene Stellen bei xt:Commerce!
xt:Commerce stellt ein
###
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
auerhalb, documentroot, installation

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus



Alle Zeitangaben in WEZ +1. Es ist jetzt 16:01 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand