habe ein Problem, das mich schon einige Stunden beschäftigt. Ich habe XAMPP 1.8.1 auf meinen Windows 7 x64 PC installiert und habe eine php-Datei "magento-chek.php" in das Verzeichnis XAMPP/htdocs/magento-check/magento-check.php kopiert Beim Aufruf localhost wird die Startseite von XAMPP aufgerufen und alle weiteren Seiten laufen genauso. Sind ja auch php-Dateien. Rufe ich jetzt aber durch localhost/magento-check/magento-check.php bekomme ich nur den Quellcode der php-Datei angezeigt. Er wird also nicht interpretiert. Das sieht dann so aus (Kopie aus Browserfenster)
- Code: Select all
You need PHP 5.2.0 (or greater)'; } else { $pass .='
You have PHP 5.2.0 (or greater)
'; } if(!ini_get('safe_mode')) { $pass .='
Safe Mode is off
'; preg_match('/[0-9]\.[0-9]+\.[0-9]+/', shell_exec('mysql -V'), $version); if(version_compare($version[0], '4.1.20', '<')) { $fail .= '
You need MySQL 4.1.20 (or greater)
'; } else { $pass .='
You have MySQL 4.1.20 (or greater)
'; } } else { $fail .= '
Safe Mode is on
'; } foreach($extensions as $extension) { if(!extension_loaded($extension)) { $fail .= '
You are missing the '.$extension.' extension
'; } else{ $pass .= '
You have the '.$extension.' extension
'; } } if($fail) { echo '
Your server does not meet the following requirements in order to install Magento.'; echo '
The following requirements failed, please contact your hosting provider in order to receive assistance with meeting the system requirements for Magento:'; echo '
'.$fail.'
'; echo 'The following requirements were successfully met:'; echo '
'.$pass.'
'; } else { echo '
Congratulations! Your server meets the requirements for Magento.
'; echo '
'.$pass.'
'; } } ?>
Meine magento-check.php hat folgenden Code
- Code: Select all
<?
extension_check(array(
'curl',
'dom',
'gd',
'hash',
'iconv',
'mcrypt',
'pcre',
'pdo',
'pdo_mysql',
'simplexml'
));
function extension_check($extensions) {
$fail = '';
$pass = '';
if(version_compare(phpversion(), '5.2.0', '<')) {
$fail .= '<li>You need<strong> PHP 5.2.0</strong> (or greater)</li>';
}
else {
$pass .='<li>You have<strong> PHP 5.2.0</strong> (or greater)</li>';
}
if(!ini_get('safe_mode')) {
$pass .='<li>Safe Mode is <strong>off</strong></li>';
preg_match('/[0-9]\.[0-9]+\.[0-9]+/', shell_exec('mysql -V'), $version);
if(version_compare($version[0], '4.1.20', '<')) {
$fail .= '<li>You need<strong> MySQL 4.1.20</strong> (or greater)</li>';
}
else {
$pass .='<li>You have<strong> MySQL 4.1.20</strong> (or greater)</li>';
}
}
else { $fail .= '<li>Safe Mode is <strong>on</strong></li>'; }
foreach($extensions as $extension) {
if(!extension_loaded($extension)) {
$fail .= '<li> You are missing the <strong>'.$extension.'</strong> extension</li>';
}
else{ $pass .= '<li>You have the <strong>'.$extension.'</strong> extension</li>';
}
}
if($fail) {
echo '<p><strong>Your server does not meet the following requirements in order to install Magento.</strong>';
echo '<br>The following requirements failed, please contact your hosting provider in order to receive assistance with meeting the system requirements for Magento:';
echo '<ul>'.$fail.'</ul></p>';
echo 'The following requirements were successfully met:';
echo '<ul>'.$pass.'</ul>';
} else {
echo '<p><strong>Congratulations!</strong> Your server meets the requirements for Magento.</p>';
echo '<ul>'.$pass.'</ul>';
}
}
?>
Auf meinem shared-Server meines Providers läuft die Datei tadellos und gibt auch alles richtig aus. Was kann ich tun. bin ziemlich verzweifelt. Bitte helft mir!
error.log
- Code: Select all
[Wed Oct 10 19:14:36.182112 2012] [ssl:warn] [pid 5080:tid 252] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Oct 10 19:14:36.254112 2012] [mpm_winnt:notice] [pid 5080:tid 252] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Wed Oct 10 19:14:36.255112 2012] [mpm_winnt:notice] [pid 5080:tid 252] AH00456: Server built: Aug 18 2012 12:41:37
[Wed Oct 10 19:14:36.255112 2012] [core:notice] [pid 5080:tid 252] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Oct 10 19:14:36.256112 2012] [mpm_winnt:notice] [pid 5080:tid 252] AH00418: Parent: Created child process 6180
[Wed Oct 10 19:14:37.363112 2012] [ssl:warn] [pid 6180:tid 264] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Oct 10 19:14:37.412112 2012] [mpm_winnt:notice] [pid 6180:tid 264] AH00354: Child: Starting 150 worker threads.
[Wed Oct 10 19:15:53.810112 2012] [core:warn] [pid 3220:tid 252] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Oct 10 19:15:54.179112 2012] [ssl:warn] [pid 3220:tid 252] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Oct 10 19:15:54.224112 2012] [mpm_winnt:notice] [pid 3220:tid 252] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Wed Oct 10 19:15:54.224112 2012] [mpm_winnt:notice] [pid 3220:tid 252] AH00456: Server built: Aug 18 2012 12:41:37
[Wed Oct 10 19:15:54.224112 2012] [core:notice] [pid 3220:tid 252] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Oct 10 19:15:54.226112 2012] [mpm_winnt:notice] [pid 3220:tid 252] AH00418: Parent: Created child process 1632
[Wed Oct 10 19:15:55.312112 2012] [ssl:warn] [pid 1632:tid 264] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Oct 10 19:15:55.360112 2012] [mpm_winnt:notice] [pid 1632:tid 264] AH00354: Child: Starting 150 worker threads.
[Wed Oct 10 19:26:50.050957 2012] [core:warn] [pid 1848:tid 252] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Oct 10 19:26:50.448957 2012] [ssl:warn] [pid 1848:tid 252] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Oct 10 19:26:50.494957 2012] [mpm_winnt:notice] [pid 1848:tid 252] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Wed Oct 10 19:26:50.494957 2012] [mpm_winnt:notice] [pid 1848:tid 252] AH00456: Server built: Aug 18 2012 12:41:37
[Wed Oct 10 19:26:50.494957 2012] [core:notice] [pid 1848:tid 252] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Oct 10 19:26:50.496957 2012] [mpm_winnt:notice] [pid 1848:tid 252] AH00418: Parent: Created child process 5588
[Wed Oct 10 19:26:51.608957 2012] [ssl:warn] [pid 5588:tid 264] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Oct 10 19:26:51.712957 2012] [mpm_winnt:notice] [pid 5588:tid 264] AH00354: Child: Starting 150 worker threads.
[Wed Oct 10 19:31:54.650957 2012] [core:warn] [pid 3216:tid 252] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Oct 10 19:31:55.011957 2012] [ssl:warn] [pid 3216:tid 252] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Oct 10 19:31:55.075957 2012] [mpm_winnt:notice] [pid 3216:tid 252] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Wed Oct 10 19:31:55.075957 2012] [mpm_winnt:notice] [pid 3216:tid 252] AH00456: Server built: Aug 18 2012 12:41:37
[Wed Oct 10 19:31:55.075957 2012] [core:notice] [pid 3216:tid 252] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Oct 10 19:31:55.077957 2012] [mpm_winnt:notice] [pid 3216:tid 252] AH00418: Parent: Created child process 6412
[Wed Oct 10 19:31:56.347957 2012] [ssl:warn] [pid 6412:tid 264] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Oct 10 19:31:56.395957 2012] [mpm_winnt:notice] [pid 6412:tid 264] AH00354: Child: Starting 150 worker threads.
So jetzt glaube ich habe ich alle wichtigen Infos.