Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
centos:web_c7:phpmyadmin [29.01.2015 18:05. ] – [Anwendungskonfiguration] django | centos:web_c7:phpmyadmin [22.07.2019 14:43. ] (aktuell) – django | ||
---|---|---|---|
Zeile 2: | Zeile 2: | ||
{{: | {{: | ||
\\ \\ | \\ \\ | ||
- | Zur komfortablen Administration unseres [[centos:mysql|mySQL-Datenbankserver unter CentOS 7.x]] greifen wir auf das PHP-Projekt [[http:// | + | Zur komfortablen Administration unseres [[centos:mariadb|MariaDB-Datenbankserver unter CentOS 7.x]] greifen wir auf das PHP-Projekt [[http:// |
===== Installation ===== | ===== Installation ===== | ||
Zeile 1417: | Zeile 1417: | ||
</ | </ | ||
- | ===== Konfiguration ===== | + | ===== grundlegende |
==== Apache vHOST ==== | ==== Apache vHOST ==== | ||
Im ersten Konfigurationsbeispiel richten wir uns einen vHOST für unseren Apache-Webserver ein. Hier wurde bei der Installation bereits eine passende Konfigurationsdatei in den Apache-Konfigurationspfad eingestellt. Diese Konfigurationsdatei passen wir unseren Gegebenheiten entsprechend an. | Im ersten Konfigurationsbeispiel richten wir uns einen vHOST für unseren Apache-Webserver ein. Hier wurde bei der Installation bereits eine passende Konfigurationsdatei in den Apache-Konfigurationspfad eingestellt. Diese Konfigurationsdatei passen wir unseren Gegebenheiten entsprechend an. | ||
Zeile 1572: | Zeile 1572: | ||
| mysql | | | mysql | | ||
| opendmarc | | opendmarc | ||
- | | opendocman | ||
| phpmyadmin | | phpmyadmin | ||
| postfix | | postfix | ||
Zeile 1630: | Zeile 1629: | ||
=== Datenbank(tabellen) erstellen === | === Datenbank(tabellen) erstellen === | ||
Zum Erstellen der benötigten Tabelle greifen wir auf die Datei // | Zum Erstellen der benötigten Tabelle greifen wir auf die Datei // | ||
- | # cp / | + | # cp / |
<WRAP round important> | <WRAP round important> | ||
Zeile 1994: | Zeile 1993: | ||
Enter password: | Enter password: | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | === Zugriff testen === | ||
+ | Zum Schluß überprüfen wir, ob der zuvor angelegt User/Zugang auch vom Webserver aus funktioniert. | ||
+ | # mysql -h mysql.dmz.nausch.org -D phpmyadmin -u controluser -p | ||
+ | |||
+ | < | ||
+ | Welcome to the MariaDB monitor. | ||
+ | Your MySQL connection id is 14121972 | ||
+ | Server version: 5.1.73 Source distribution | ||
+ | |||
+ | Copyright (c) 2000, 2014, Oracle, Monty Program Ab and others. | ||
+ | |||
+ | Type ' | ||
+ | |||
+ | MariaDB [(none)]> | ||
+ | </ | ||
+ | | ||
+ | < | ||
+ | | Tables_in_phpmyadmin | ||
+ | +-----------------------+ | ||
+ | | pma__bookmark | ||
+ | | pma__central_columns | ||
+ | | pma__column_info | ||
+ | | pma__favorite | ||
+ | | pma__history | ||
+ | | pma__navigationhiding | | ||
+ | | pma__pdf_pages | ||
+ | | pma__recent | ||
+ | | pma__relation | ||
+ | | pma__savedsearches | ||
+ | | pma__table_coords | ||
+ | | pma__table_info | ||
+ | | pma__table_uiprefs | ||
+ | | pma__tracking | ||
+ | | pma__userconfig | ||
+ | | pma__usergroups | ||
+ | | pma__users | ||
+ | +-----------------------+ | ||
+ | 17 rows in set (0.00 sec) | ||
+ | |||
+ | MariaDB [(none)]> | ||
+ | </ | ||
+ | |||
+ | Da der Test positiv ausgefallen ist, können wie uns wieder von unserem Datenbankserver abmelden. | ||
+ | | ||
+ | |||
+ | Bye | ||
Zeile 2002: | Zeile 2053: | ||
===== Anwendungskonfiguration ===== | ===== Anwendungskonfiguration ===== | ||
==== manueller Weg ==== | ==== manueller Weg ==== | ||
- | Möchte man die PHP-Anwendung per Hand editieren | + | Möchte man die PHP-Anwendung per Hand editieren |
+ | $ firefox http:// | ||
+ | |||
+ | Zum Bearbeiten der Konfigurationsdatei nutzen wir z.B. **vim**. | ||
# vim / | # vim / | ||
- | <file php / | + | <file php / |
- | /** | + | /** |
- | * phpMyAdmin configuration file, you can use it as base for the manual | + | * phpMyAdmin configuration file, you can use it as base for the manual |
- | * configuration. For easier setup you can use " | + | * configuration. For easier setup you can use " |
- | | + | * |
- | * All directives are explained in Documentation.html and on phpMyAdmin | + | * All directives are explained in Documentation.html and on phpMyAdmin |
- | * wiki < | + | * wiki < |
- | | + | */ |
/* | /* | ||
* This is needed for cookie based authentication to encrypt password in | * This is needed for cookie based authentication to encrypt password in | ||
- | * cookie | + | * cookie |
- | | + | */ |
$cfg[' | $cfg[' | ||
/** | /** | ||
* Server(s) configuration | * Server(s) configuration | ||
- | | + | */ |
- | $i = 0; | + | $i = 0; |
// The $cfg[' | // The $cfg[' | ||
// $cfg[' | // $cfg[' | ||
- | // to '' | + | // to '' |
- | // (including $i incrementation) serveral times. There is no need to define | + | // (including $i incrementation) serveral times. There is no need to define |
- | // full server array, just define values you need to change. | + | // full server array, just define values you need to change. |
- | $i++; | + | $i++; |
$cfg[' | $cfg[' | ||
$cfg[' | $cfg[' | ||
$cfg[' | $cfg[' | ||
- | $cfg[' | + | $cfg[' |
$cfg[' | $cfg[' | ||
- | $cfg[' | + | $cfg[' |
- | // (requires PHP >= 4.3.0) | + | // (requires PHP >= 4.3.0) |
- | $cfg[' | + | $cfg[' |
- | // (this user must have read-only | + | // (this user must have read-only |
- | $cfg[' | + | $cfg[' |
- | // and " | + | // and " |
- | // The controluser is also | + | // The controluser is also |
- | // used for all relational | + | // used for all relational |
- | // features (pmadb) | + | // features (pmadb) |
$cfg[' | $cfg[' | ||
- | $cfg[' | + | $cfg[' |
- | $cfg[' | + | $cfg[' |
- | // with ' | + | // with ' |
- | $cfg[' | + | $cfg[' |
- | // this db is displayed in left frame | + | // this db is displayed in left frame |
// It may also be an array of db-names, where sorting order is relevant. | // It may also be an array of db-names, where sorting order is relevant. | ||
- | $cfg[' | + | $cfg[' |
- | $cfg[' | + | $cfg[' |
$cfg[' | $cfg[' | ||
- | // (see scripts/ | + | // (see scripts/ |
- | // - leave blank for no support | + | // - leave blank for no support |
- | // | + | // |
- | $cfg[' | + | $cfg[' |
- | // - leave blank for no bookmark support | + | // - leave blank for no bookmark support |
- | // | + | // |
$cfg[' | $cfg[' | ||
- | // - leave blank for no relation-links support | + | // - leave blank for no relation-links support |
- | // | + | // |
$cfg[' | $cfg[' | ||
// - leave blank for no display fields | // - leave blank for no display fields | ||
Zeile 2072: | Zeile 2126: | ||
// | // | ||
$cfg[' | $cfg[' | ||
- | // - leave blank if you don't want to | + | // - leave blank if you don't want to |
// | // | ||
$cfg[' | $cfg[' | ||
Zeile 2122: | Zeile 2176: | ||
$ firefox http:// | $ firefox http:// | ||
- | {{ : | + | {{ : |
Als erstes definieren wir unseren Datenbank-Server. Hierzu klicken wir auf die Schaltfläche **[ Neuer Server ]**. | Als erstes definieren wir unseren Datenbank-Server. Hierzu klicken wir auf die Schaltfläche **[ Neuer Server ]**. | ||
- | {{ : | + | {{ : |
- | Haben wir die entsprechenden Daten eingegeben, klicken wir auf die grün markierte Schaltfläche **[ Übernehmen | + | Haben wir die entsprechenden Daten eingegeben, klicken wir auf die grün markierte Schaltfläche **[ Übernehmen ]**. |
- | {{ : | + | {{ : |
- | Bei Bedarf | + | Beim Reiter **Serverkonfiguration** |
- | {{ : | + | {{ : |
- | Die mit der Web-GUI erstellte Konfigurationsdatei finden | + | Die Einstellungen zum Konfigurationsspeicher **PMADB** legen wir auf dem Reiter |
- | # less / | + | |
- | <file php / | + | Datenbankname |
- | /* | + | pmadb Host [ ] |
- | * Generated configuration file | + | |
- | * Generated by: phpMyAdmin 4.3.6 setup script | + | pmadb Benutzer |
- | * Date: Thu, 22 Jan 2015 12:02:20 +0100 | + | pmadb Benutzer Passwort |
- | */ | + | Lesezeichen Tabelle |
+ | Relation Tabelle | ||
+ | Tabelle für Benutzereinstellungen | ||
+ | Benutzer-Tabelle | ||
+ | Benutzergruppen-Tabelle | ||
+ | Tabelle für ausgeblendete Navigations-Elemente | ||
+ | Tabelle für Anzeigespalten | ||
+ | Spalten Informationen Tabelle | ||
+ | SQL Abfragehistorien Tabelle | ||
+ | Kürzlich verwendete Tabellen | ||
+ | Tabelle für Oberflächeneinstellungen | ||
+ | Tabelle mit Verfolgung der SQL-Abfragen | ||
+ | Designer- und PDF Schema: Tabellenkoordinaten | ||
+ | | ||
+ | Beispielabfragentabelle | ||
+ | Central columns tabele | ||
+ | | ||
- | /* Servers configuration */ | + | {{ : |
- | $i = 0; | + | |
- | /* Server: mysql.dmz.nausch.org [1] */ | + | Auf dem Reiter **Grundeinstellungen** setzen wir den Haken **✔** beim Punkt **Benutze SSL**. |
- | $i++; | + | |
- | $cfg[' | + | |
- | $cfg[' | + | |
- | $cfg[' | + | |
- | $cfg[' | + | |
- | $cfg[' | + | |
- | $cfg[' | + | |
- | $cfg[' | + | |
- | $cfg[' | + | |
- | /* End of servers configuration */ | + | {{ : |
- | $cfg[' | + | Wie haben den Konfigurationspunkte **Übersicht** erfolgreich fertiggestellt. Nun Wählen wir den nächsten Konfigurationskapitel **Funktionen** am linken Bildschirmrand an. |
- | $cfg[' | + | Auf dem Reiter **Import/Export** legen wir die beiden Verzeichnisse zum **Upload Verzeichnis** und **Speicher Verzeichnis** fest. |
- | $cfg[' | + | |
- | $cfg[' | + | |
- | $cfg[' | + | |
- | $cfg[' | + | |
- | $cfg[' | + | |
- | $cfg[' | + | |
- | $cfg[' | + | |
- | ?> | + | |
- | </ | + | |
- | ===== erweiterte Konfiguration ===== | + | {{ : |
+ | Upload Verzeichnis | ||
+ | Speicher Verzeichnis | ||
+ | Auf den Reiter **Sicherheit** setzen wir den Haken **✔** beim Punkt **SSL-Verbindung erzwingen**. | ||
- | === Zugriff testen === | + | {{ : |
- | Zum Schluß überprüfen wir, ob der zuvor angelegt User/Zugang auch vom Webserver aus funktioniert. | + | |
- | # mysql -h mysql.dmz.nausch.org -D phpmyadmin -u controluser -p | + | |
- | < | + | Beim Konfigurationskapitel **SQL-Abfragen** setzen wir den **✔** beim Punkt **Abfragelog speichern**. |
- | Welcome to the MariaDB monitor. | + | |
- | Your MySQL connection id is 14121972 | + | |
- | Server version: 5.1.73 Source distribution | + | |
- | Copyright (c) 2000, 2014, Oracle, Monty Program Ab and others. | + | {{ : |
- | Type ' | + | Auf den Reitern des Konfigurationskapitel **Navigationspanel** übernehmen wir die Defaultwerte. |
- | MariaDB [(none)]> | + | Reiter **Navigationspanel**: |
- | </ | + | |
- | | + | |
- | < | + | |
- | | Tables_in_phpmyadmin | + | |
- | +-----------------------+ | + | |
- | | pma__bookmark | + | |
- | | pma__central_columns | + | |
- | | pma__column_info | + | |
- | | pma__favorite | + | |
- | | pma__history | + | |
- | | pma__navigationhiding | | + | |
- | | pma__pdf_pages | + | |
- | | pma__recent | + | |
- | | pma__relation | + | |
- | | pma__savedsearches | + | |
- | | pma__table_coords | + | |
- | | pma__table_info | + | |
- | | pma__table_uiprefs | + | |
- | | pma__tracking | + | |
- | | pma__userconfig | + | |
- | | pma__usergroups | + | |
- | | pma__users | + | |
- | +-----------------------+ | + | |
- | 17 rows in set (0.00 sec) | + | |
- | MariaDB [(none)]> | + | {{ : |
- | </ | + | |
- | Da der Test positiv ausgefallen ist, können wie uns wieder von unserem Datenbankserver abmelden. | + | Reiter **Server**: |
- | | + | |
- | Bye | + | {{ : |
+ | Reiter **Datenbanken**: | ||
- | FIXME //do geds weida ...// FIXME | + | {{ : |
+ | Reiter **Tabellen**: | ||
+ | {{ : | ||
- | <file php config.inc.php><? | + | Wie auch schon beim Kapitel **Navigationspanel** übernehmen wir beim Kapitel **Hauptpanel** die Defaultwerte. |
+ | |||
+ | {{ : | ||
+ | |||
+ | Zum Speichern der Konfigurationswerte klicken wir im Konfigurationskapitel **Übersicht** auf die schaltfläche **[ Speichern ]** am unteren linke ende des Fensters. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Wollen wir die Konfigurationsdatei gesondert sichern, klicken wir auf die Schaltfläche **[ Download ]**. Bei Bedarf können wir uns die erstellte und gespeicherte Konfigurationsdaten auch anzeigen lassen; hierzu klicken wir auf die Schaltfläche **[ Anzeigen ]**. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Die mit der Web-GUI erstellte Konfigurationsdatei finden wir im Verzeichnis // | ||
+ | # less / | ||
+ | <file php / | ||
/* | /* | ||
* Generated configuration file | * Generated configuration file | ||
* Generated by: phpMyAdmin 4.3.6 setup script | * Generated by: phpMyAdmin 4.3.6 setup script | ||
- | * Date: Thu, 29 Jan 2015 15:51:43 +0100 | + | * Date: Thu, 29 Jan 2015 15:50:25 +0100 |
*/ | */ | ||
Zeile 2276: | Zeile 2315: | ||
/* End of servers configuration */ | /* End of servers configuration */ | ||
- | $cfg[' | + | $cfg[' |
$cfg[' | $cfg[' | ||
$cfg[' | $cfg[' | ||
Zeile 2282: | Zeile 2321: | ||
$cfg[' | $cfg[' | ||
$cfg[' | $cfg[' | ||
+ | $cfg[' | ||
+ | $cfg[' | ||
+ | $cfg[' | ||
?> | ?> | ||
</ | </ | ||
+ | ==== abschließende Konfiguration ==== | ||
- | ===== abschließende Konfiguration ===== | + | Die erstelle Konfigurationsdatei |
- | + | ||
- | Diese Datei verschieben wir nun in das Konfigurationsverzeichnis // | + | |
# mv / | # mv / | ||
Zeile 2298: | Zeile 2339: | ||
# rmdir / | # rmdir / | ||
- | Nun können | + | Für die **Import / Export** Funktion benötigen |
- | $ firefox http:// | + | # yum install recode php-recode -y |
- | {{ : | + | Haben wir eine mySQL-Datenbank, |
- | + | ||
- | Nach erfolgter Anmeldung befinden wir uns im Hauptadministrationsfenster von **phpMyAdmin**. | + | |
- | {{ : | + | {{ : |
<WRAP center round tip 80%> | <WRAP center round tip 80%> | ||
**Hinweis: | **Hinweis: | ||
- | |||
Fehlermeldung **phpMyAdmin - Fehler** | Fehlermeldung **phpMyAdmin - Fehler** | ||
//Sie sollten auf MySQL 5.5.0 oder neuer aktualisieren.// | //Sie sollten auf MySQL 5.5.0 oder neuer aktualisieren.// | ||
+ | Damit wir unsere alte Datenbank mit **phpMyAdmin** administrieren können, ändern wir wie nachfolgend aufgezeigt, die Datei **common.inc.php**. | ||
# vim / | # vim / | ||
Zeile 2327: | Zeile 2366: | ||
</ | </ | ||
- | # yum install php-recode | + | ===== Programmstart/ |
- | + | Nun können wir die Applikation **phpMyAdmin** mit dem Browser unserer Wahl starten. | |
+ | $ firefox http:// | ||
+ | {{ : | ||
+ | Nach erfolgter Anmeldung befinden wir uns im Hauptadministrationsfenster von **phpMyAdmin**. | ||
+ | {{ : | ||
+ | ====== Links ====== | ||
+ | * **[[centos: | ||
+ | * **[[wiki: | ||
+ | * **[[http:// | ||