als nächstes wollte ich phpmyadmin( Version 4:2.11.8.1-5+lenny4) sicher konfigurieren, auf meinem Debian Lenny (2.6.32.11) Server. Es soll nur über SSL, also http://server/phpmyadmin/ erreichbar sein. Meine derzeitige config sieht wie folgt aus:
Code: Alles auswählen
<?php
/**
* This example configuration shows how to configure phpMyAdmin for
* many hosts that all have identical configuration otherwise. To add
* a new host, just drop it into $hosts below. Contributed by
* Matthew Hawkins.
*/
$i=0;
// Hosts which contain a MySQL Server
$hosts = array (
"localhost",
"feld-bert.feldland.lan",
);
foreach ($hosts as $host) {
$i++;
$cfg['Servers'][$i]['host'] = $host;
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['compress'] = FALSE;
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = 'pmapass';
$cfg['Servers'][$i]['ForceSSL'] = 'true';
// Whether to enable SSL for connection to MySQL server.
//$cfg['Servers'][$i]['ssl'] = 'false';
$cfg['Servers'][$i]['auth_type'] = 'http';
$cfg['Servers'][$i]['user'] = '';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['only_db'] = '';
$cfg['Servers'][$i]['verbose'] = '';
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
$cfg['Servers'][$i]['relation'] = 'pma_relation';
$cfg['Servers'][$i]['table_info'] = 'pma_table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma_column_info';
$cfg['Servers'][$i]['history'] = 'pma_history';
$cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
}
Code: Alles auswählen
ii libapache2-mod-php5 5.2.6.dfsg.1-1+lenny8 server-side, HTML-embedded scripting languag
ii php5-common 5.2.6.dfsg.1-1+lenny8 Common files for packages built from the php
ii php5-gd 5.2.6.dfsg.1-1+lenny8 GD module for php5
ii php5-mcrypt 5.2.6.dfsg.1-1+lenny8 MCrypt module for php5
ii php5-mysql 5.2.6.dfsg.1-1+lenny8 MySQL module for php5
ii phpmyadmin 4:2.11.8.1-5+lenny4 MySQL web administration tool
Weiterhin wollte ich den Zugriff auf mein lokales Netz beschränken. Wie geht das?
Als Fehler bekomme ich,
Code: Alles auswählen
Verbindung für den controluser, wie er in Ihrer Konfiguration angegeben ist, ist fehlgeschlagen.