status.php von TOMCAT Add-On

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

status.php von TOMCAT Add-On

Postby PPMAX » 28. February 2006 18:08

Hallo XAMPP Community,

Ich bin der Meinung dass status.php von TOMCAT einige Bugs enthalten. Status von MySQL, PHP, SSI usw. zeigen "deaktiviert" obwohl ich problemlos mein Forum abrufen kann. (auch infophp.php)

Bevor ihr Tomcat addon installiert, mache ein backup von status.php.
Nachdem ihr Tomcat installiert habt kopiere den backup zurueck
Dann die Zeile 138 wie gefolgt veraendern
Code: Select all
if (file_exists("$partwampp\\tomcat\bin\\tomcat5.exe"))


Ausserdem sind Fixes von Carsten Wiedmann gar nicht in dem status.php von Tomcat integriert.

Code: Select all
<body>
      <?php include "lang/".file_get_contents("lang.tmp").".php"; ?>
      &nbsp;<p>

      <h1><?php echo $TEXT['status-head']; ?></h1>

      <?php echo $TEXT['status-text1']; ?><p>

      <?php
         $curdir = getcwd();
         list($partwampp, $directorwampp) = spliti ('\\\htdocs\\\xampp', $curdir);
         $i = 0;
         $up = "";

         if ($_SERVER['SERVER_PORT'] == 443) {
            $prot = "https";
         } else {
            $prot = "http";
         }

         if (isset($_SERVER['PHP_AUTH_USER'])) {
            $up = "$_SERVER[PHP_AUTH_USER]:$_SERVER[PHP_AUTH_PW]@";
         }
         if ('localhost' == strtolower($_SERVER['SERVER_NAME'])) { // Fix by Wiedmann
            $server = '127.0.0.1';
         } else {
            $server = $_SERVER['SERVER_NAME'];
         }
         $b = "$prot://$up".$server;
         if ($_SERVER['SERVER_PORT'] != 80) {
            $b = "$prot://$up".$server.":".$_SERVER['SERVER_PORT']; // Fix by Wiedmann
         }

         function line($text, $status, $link = "") {
            global $i, $TEXT;


Mit freundlichen Greussen

PPMAX


PS: Das hat MIR geholfen um die Status von den verschiedenen Anwendungen zu korrigieren. Es koennte auch an meinem System liegen
:roll:

Windows XP SP2++
PPMAX
 
Posts: 6
Joined: 28. February 2006 14:32

Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 105 guests