PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : SuSE 9.2 und phpMyAdmin



schuelsche
08.04.05, 09:19
Hallo,

ich versuche gerade unter SuSE 9.2, das ich von der CD installiert habe, den phpMyAdmin zum Laufen zu bringen. Dazu habe ich mir von rpmseek.com das RPM heruntergeladen:
ftp://ftp.gwdg.de/pub/linux/suse/ftp.suse.com/suse/i386/9.2/suse/noarch/phpMyAdmin-2.6.0-4.3.noarch.rpm

Danach wurden von yast noch ein paar fehlende Abhängigkeiten bemängelt, die ich dann gelöst habe.

Anschliessend habe ich in der config.inc.php den Pfad der
$cfg['PmaAbsoluteUri'] = '/srv/www/htdocs/phpMyAdmin/';
entsprechend angepasst.

In MySQL hatte ich ein Passwort gesetzt mit
/usr/bin/mysqladmin -u root password password .

Wenn ich jetzt die Seite
http://localhost/phpMyAdmin/
aufrufe, bekomme ich folgende Fehlermeldung:



Warning: parse_url(http:///srv/www/htdocs/phpMyAdmin/): Unable to parse url in /srv/www/htdocs/phpMyAdmin/libraries/select_theme.lib.php on line 78

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/htdocs/phpMyAdmin/libraries/select_theme.lib.php:78) in /srv/www/htdocs/phpMyAdmin/libraries/select_theme.lib.php on line 89

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/htdocs/phpMyAdmin/libraries/select_theme.lib.php:78) in /srv/www/htdocs/phpMyAdmin/index.php on line 55


In der /srv/www/htdocs/phpMyAdmin/libraries/select_theme.lib.php on line 78 steht:
$pma_uri_parts = parse_url($cfg['PmaAbsoluteUri']);

... aber den hatte ich ja schon eingetragen...

Wie kann ich das Problem lösen?!

Grüsse
schuelsche

Tomek
08.04.05, 09:27
Das ist leider falsch konfiguriert:

$cfg['PmaAbsoluteUri'] = '/srv/www/htdocs/phpMyAdmin/';
Siehe die Hilfe über der Option:

/**
* Your phpMyAdmin url
*
* Complete the variable below with the full url ie
* http://www.your_web.net/path_to_your_phpMyAdmin_directory/
*
* It must contain characters that are valid for a URL, and the path is
* case sensitive on some Web servers, for example Unix-based servers.
*
* In most cases you can leave this variable empty, as the correct value
* will be detected automatically. However, we recommend that you do
* test to see that the auto-detection code works in your system. A good
* test is to browse a table, then edit a row and save it. There will be
* an error message if phpMyAdmin cannot auto-detect the correct value.
*
* If the auto-detection code does work properly, you can set to TRUE the
* $cfg['PmaAbsoluteUri_DisableWarning'] variable below.
*/
Richtig wäre es so:

$cfg['PmaAbsoluteUri'] = 'http://www.deinserver.de/pfad/zu/phpmyadmin/';

marce
08.04.05, 09:29
$cfg['PmaAbsoluteUri'] = '/srv/www/htdocs/phpMyAdmin/';

trag da mal sowas wie http://localhost/phpMyAdmin ein - er will dort eine URL

Edit: Mist, zu langsam...

schuelsche
08.04.05, 09:35
Danke ;-)

Noch bevor ich Eure Antworten gelesen habe, habe ich das über dem $cfg['PmaAbsoluteUri'] nochmal genauer gelesen und das probiert - funktioniert ;-)

Vielen Dank trotzdem... vielleicht ist ja mal jemand ähnlich blind wie ich ;-)

Grüsse
schuelsche