|
|||
|
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);
}
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 |
|
||||
|
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 ### |
![]() |
| Lesezeichen |
| Stichworte |
| auerhalb, documentroot, installation |
| Themen-Optionen | |
| Ansicht | |
|
|