phpMyAdmin auf lokaler Installation / 404 Error
| Autor | Nachricht |
|---|---|
|
Verfasst am: 30. 03. 2009 [11:14]
|
|
|
Superbohne
Themenersteller
Dabei seit: 30.03.2009
Beiträge: 3
|
Hallo, als blutiger Anfänger schlage ich mich nunmehr seit Stunden mit einem "Problem" herum, dass ich einfach nicht gelöst bekomme. Wahrscheinlich eher lächerlicher Natur - für mich aber momentan echt Nerv raubend Ich habe mit TYPO3 4.2.6 unter Xammp 1.7. installiert und soweit läuft alles reibungslos. Nun wollte ich mir die phpMyAdmin Ext installieren. Auch das hat soweit funktioniert - wird im Menü angezeigt. Versuche ich nun aber pMA zu starten, laufe ich ständig auf einen 404 Error?? TYPO3 scheint da was nicht zu finden... Was könnte ich hier grundlegendes falsch gemacht haben bzw. wo könnte ich Ansätze zur Problembehebung finden? Über Eure kurze einschätzung würde ich mich freuen. Grüße Superbohne |
|
Verfasst am: 30. 03. 2009 [16:14]
|
|
|
Julian.Hofmann
Dabei seit: 18.05.2007
Beiträge: 2073
|
Die phpMyAdmin-Extension verhält sich manchmal etwas komisch bzw. läuft sie bei mir auch nicht auf jedem Server in jeder Version. Eine "Lösung" könnte für Dich die Verwendung einer älteren Version sein, falls Deine XAMP nur eine lokale Entwicklungsumgebung ist, die Sicherheit des Systems also eher egal ist. Funktional hat sich ja eher wenig an phpMyAdmin getan. |
|
Verfasst am: 31. 03. 2009 [17:01]
|
|
|
Superbohne
Themenersteller
Dabei seit: 30.03.2009
Beiträge: 3
|
Hallo und Danke für Deine Antwort! Leider komme ich noch immer nicht so recht weiter. Immer wieder der 404 Error ;-(. Habe auch versucht eine ältere Extensionversion von pMA zu finden, hier kämpft aber sowohl winzip als auch 7zip mit der Entpackung*... entweder ich stell´ mich grad selten dämlich an oder laufe hier in einen, vielleicht typischen, Anfängerfehler. Evtl. kann mir ja weitergeholfen werden, wenn ich das Problem mal step-by-step erläutere (und hoffe damit Eure Nerven nicht all zu doll zu strapazieren 1.) Ich entpacke die aktuelle* pMA Extension lokal unter E:\xampp\htdocs\Testumgebung\typo3conf\ext\phpmyadmin 2.) Ich instaliere die Extension per Erweiterungsmanager. Folgende Meldung kommt, mit der ich nicht so recht was anfangen kann: Extension Manager Extension: phpMyAdmin (phpmyadmin) Installing phpMyAdmin: DATABASE NEEDS TO BE UPDATED Before the extension can be installed the database needs to be updated with new tables or fields. Please select which operations to perform: This extension provides additional configuration options which become available once it is installed. Unbedarft klicke ich Make updates 3.) Es erscheint die folgende, eigentlich erfolgsversprechende, Meldung: Active status: The extension is installed (loaded and running)! pMA ist nun auch im linke Frame zu sehen und lässt sich anwählen. 4.) Und dann immer wieder das gleiche Spiel - 404: Objekt nicht gefunden! Der angeforderte URL konnte auf dem Server nicht gefunden werden. Der Link auf der verweisenden Seite scheint falsch oder nicht mehr aktuell zu sein. Bitte informieren Sie den Autor dieser Seite über den Fehler. Sofern Sie dies für eine Fehlfunktion des Servers halten, informieren Sie bitte den Webmaster hierüber. Error 404 localhost 03/31/09 16:54:43 Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.8 Der Cache ist geleert, hab´ mich mehrmals ein- und ausgeloggt - bringt alles nichts. Ich hab´ ja noch nicht wirklich viel Ahnung von der Materie - aber da wird doch irgendwas nicht gefunden (falsches Verzeichnis für die Extension??). Prinzipiell kann ich ja egtl. auch mit der pMA Anwendung von XAMPP an den relevanten Datenbanken arbeiten, also die Extension ist für meine lokalen Zwecke egtl. wurscht - richtig? ... Trotzdem wurmt es mich irgendwie, das es das über das lokale BE nicht zum laufen bekomme... Hat evtl. noch wer eine Idee was ich hier vermurkse? Danke für Euer kurzes Feedback. Grüße Superbohne [Dieser Beitrag wurde 1mal bearbeitet, zuletzt am 31.03.2009 um 17:02.] |
|
Verfasst am: 07. 04. 2009 [18:08]
|
|
|
Superbohne
Themenersteller
Dabei seit: 30.03.2009
Beiträge: 3
|
Mhhh... kann mir denn so gar keiner weiterhelfen? Würde mich schon interessieren, an was das liegen könnte bzw. was ich falsch mache? Grüße Superbohne |
|
Verfasst am: 30. 11. 2009 [21:49]
|
|
|
Mazubi
Dabei seit: 05.12.2008
Beiträge: 60
|
Habe momentan das selbe Problem mit Typo3 4.3 und phpMyAdmin 4.7.3. Das Ding will einfach nicht, hat da auch schon jemand mit dem neusten Typo3 Wurft probiert? Projekte: www.bikeclubspiez.ch
|
|
Verfasst am: 23. 04. 2010 [17:41]
|
|
|
eddy
Dabei seit: 10.07.2007
Beiträge: 168
|
Tja, auch bei mir will das nicht so richtig funktionieren. Die ganze Sache läuft (bzw. läuft nicht Typo3 4.3.3 XAMPP 1.7.3 PHP 5.3.1 phpMyAdmin 4.8.0 Ergebnis wie bei den Vorrednern: Error 404 Gibts schon irgendwelche neueren Erkenntnisse? Eddy |
|
Verfasst am: 03. 09. 2010 [12:24]
|
|
|
khkim
Dabei seit: 03.09.2010
Beiträge: 1
|
Hallo, hatte dasselbe Problem auf einem Windows Server. Dort funktioniert es nur, wenn die URL auf der Typo3 installiert ist, absolut ist, also ohne Anhang. Ist Typo3 auf einer relativen Domain Installiert gibt es 2 Lösungen, beide haben Vor- und Nachteile. Lösung 1: Globale Installation Im Install Tool "AllowGlobalInstall" auf 1, dann phpmyadmin global installieren. Sollte funktionieren, egal, wie die Domain lautet. Lösung 2 "komplizierte Notlösung" (falls globale Installation nicht machbar): Dazu muss man im phpmyadmin Extension Verzeichnis unter "modsub/index.php" die folgenden Zeilen verändern (hier der komplette Auszug der index.php): PHP <?php /*************************************************************** * Copyright notice * * (c) 1999-2005 Kasper Skaarhoj (kasperYYYY@typo3.com) * (c) 2006-2010 mehrwert (typo3@mehrwert.de) * All rights reserved * * This script is part of the TYPO3 project. The TYPO3 project is * free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * The GNU General Public License can be found at * http://www.gnu.org/copyleft/gpl.html. * * This script is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ /** * Utilities for the phpMyAdmin third party database administration Tool * * @package TYPO3 * @subpackage tx_phpmyadmin * @version $Id: index.php 36157 2010-07-29 16:11:29Z mehrwert $ * @author mehrwert <typo3@mehrwert.de> * @author Kasper SkÃ¥rhøj <kasperYYYY@typo3.com> * @license GPL */ class SC_mod_tools_phpadmin_index { /** * Configuration for the module * @var Array */ var $MCONF = array(); /** * The backend document * @var Object */ var $doc; /** * The main method of the Plugin * * @return Mixed Either returns an error or sends a redirect header */ public function main() { // Declare globals global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS; // Set the path to phpMyAdmin $extPath_old = t3lib_extMgm::extPath('phpmyadmin'); $extPath = "/deineRelativeDomain".t3lib_extMgm::extPath('phpmyadmin'); $typo3DocumentRoot = t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT'); // Set class config for module $this->MCONF = $GLOBALS['MCONF']; // Get config $extensionConfiguration = unserialize($TYPO3_CONF_VARS['EXT']['extConf']['phpmyadmin']); // Path to install dir $this->MCONF['PMA_absolute_path'] = $extPath.$this->MCONF['PMA_subdir']; // echo $this->MCONF['PMA_absolute_path']; // = $extPath.$this->MCONF['PMA_subdir']; // Path to web dir $this->MCONF['PMA_relative_path'] = t3lib_extMgm::extRelPath('phpmyadmin').$this->MCONF['PMA_subdir']; // If phpMyAdmin is configured in the conf.php script, we continue to load it... if ($this->MCONF['PMA_absolute_path']) { // && @is_dir($this->MCONF['PMA_absolute_path'])) { // echo "TEST"; // Need to have cookie visible from parent directory session_set_cookie_params(0, '/', '', 0); // Create signon session $session_name = 'tx_phpmyadmin'; session_name($session_name); session_start(); // Store there credentials in the session $_SESSION['PMA_single_signon_user'] = TYPO3_db_username; $_SESSION['PMA_single_signon_password'] = TYPO3_db_password; $_SESSION['PMA_single_signon_host'] = TYPO3_db_host; $_SESSION['PMA_single_signon_only_db'] = TYPO3_db; // Configure some other parameters $_SESSION['PMA_extConf'] = $TYPO3_CONF_VARS['EXT']['extConf']['phpmyadmin']; $_SESSION['PMA_hideOtherDBs'] = $extensionConfiguration['hideOtherDBs']; // Get signon uri for redirect // Hier den Zähler auf +1 $path_ext = substr($extPath, strlen($typo3DocumentRoot)+1, strlen($extPath)); $path_ext = (substr($path_ext, 0, 1) != '/' ? '/'.$path_ext : $path_ext); $path_pma = $path_ext.$this->MCONF['PMA_subdir']; $_SESSION['PMA_SignonURL'] = $path_pma.'index.php'; // Try to get the TYPO3 backend uri even if it's installed in a subdirectory // Compile logout path and add a slash if the returned string does not start with $path_typo3 = substr(PATH_typo3, strlen($typo3DocumentRoot), strlen(PATH_typo3)); // $path_typo3 = (substr($path_typo3, 0, 1) != '/' ? '/'.$path_typo3 : $path_typo3); $_SESSION['PMA_LogoutURL'] = $path_typo3.'logout.php'; // Prepend document root if uploadDir does not start with a slash "/" $extensionConfiguration['uploadDir'] = trim($extensionConfiguration['uploadDir']); if (strpos($extensionConfiguration['uploadDir'], '/') !== 0) { $_SESSION['PMA_uploadDir'] = $typo3DocumentRoot.'/'.$extensionConfiguration['uploadDir']; } else { $_SESSION['PMA_uploadDir'] = $extensionConfiguration['uploadDir']; } $_SESSION['PMA_typo_db'] = TYPO3_db; $id = session_id(); // Force to set the cookie according to issue #8884 // http://bugs.typo3.org/view.php?id=8884#c23323 setcookie($session_name, $id, 0, '/', ''); // Close that session session_write_close(); // Mapping language keys for phpMyAdmin $LANG_KEY_MAP = array( 'dk'=>'da', 'de'=>'de', 'no'=>'no', 'it'=>'it', 'fr'=>'fr', 'es'=>'es', 'nl'=>'nl', 'cz'=>'cs-iso', 'pl'=>'pl', 'si'=>'sk' ); $LANG_KEY = $LANG_KEY_MAP[$LANG->lang]; if (!$LANG_KEY) { $LANG_KEY = 'en'; } // Redirect to phpMyAdmin (should use absolute URL here!), setting default database $redirect_uri = $_SESSION['PMA_SignonURL'].'?lang='.$LANG_KEY.'&db='.urlencode(TYPO3_db); // Build and set cache-header header $headers = array( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT', 'Pragma: no-cache', 'Cache-Control: private', 'Location: '.$redirect_uri ); // Send all headers foreach($headers as $header) { header($header); } } else { // No configuration set $this->doc = t3lib_div::makeInstance('mediumDoc'); $this->doc->backPath = $BACK_PATH; $this->content = $this->doc->startPage($LANG->getLL('title')); $this->content .= (' <h3>phpMyAdmin module was not installed?</h3> '.($this->MCONF['PMA_subdir'] && !@is_dir($this->MCONF['PMA_subdir'])?'<hr /><strong>ERROR: The directory, '.$this->MCONF['PMA_subdir'].', was NOT found!</strong><HR>':'').' '); $this->content .= $this->doc->endPage(); } } /** * Prints the content of the module directly to the browser * * @return void */ public function printContent() { echo $this->content; } } // Proceed if BE loaded if (in_array('t3lib_div', get_declared_classes())) { // Apply access restrictions $BE_USER->modAccess($MCONF, 1); // Make instance: $SOBE = t3lib_div::makeInstance('SC_mod_tools_phpadmin_index'); $SOBE->main(); $SOBE->printContent(); } else { echo '<h1>Error</h1><p>The TYPO3 Backend is required for phpMyAdmin module but was not loaded.</p>'; } ?> |



