Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
centos:web_c7:phpmyadmin [29.01.2015 18:04. ] – [Anwendungskonfiguration] djangocentos:web_c7:phpmyadmin [22.07.2019 14:43. ] (aktuell) django
Zeile 2: Zeile 2:
 {{:centos:web_c7:phpmyadmin-logo.png?nolink&175 |Bild: phpMyAdmin Logo}} {{:centos:web_c7:phpmyadmin-logo.png?nolink&175 |Bild: phpMyAdmin Logo}}
 \\ \\ \\ \\
-Zur komfortablen Administration unseres [[centos:mysql|mySQL-Datenbankserver unter CentOS 7.x]] greifen wir auf das PHP-Projekt [[http://phpmyadmin.sourceforge.net/|phpMyAdmin]] zurück.+Zur komfortablen Administration unseres [[centos:mariadb|MariaDB-Datenbankserver unter CentOS 7.x]] greifen wir auf das PHP-Projekt [[http://phpmyadmin.sourceforge.net/|phpMyAdmin]] zurück.
  
 ===== Installation ===== ===== Installation =====
Zeile 1417: Zeile 1417:
 </code> </code>
  
-===== Konfiguration =====+===== grundlegende Konfiguration =====
 ==== 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 1626: Zeile 1625:
   - **neuen Benutzer anlegen** \\ Mit folgendem Befehl legen wir uns einen neuen Nutzer an: \\ <code>MariaDB> CREATE USER 'controluser'@'vml000097.dmz.nausch.org' IDENTIFIED BY 'controlpassword';</code><code>Query OK, 0 rows affected (0.00 sec)</code> sowie \\ <code>MariaDB> CREATE USER 'controluser'@'10.0.0.97' IDENTIFIED BY 'controlpassword';</code><code>Query OK, 0 rows affected (0.00 sec)</code>   - **neuen Benutzer anlegen** \\ Mit folgendem Befehl legen wir uns einen neuen Nutzer an: \\ <code>MariaDB> CREATE USER 'controluser'@'vml000097.dmz.nausch.org' IDENTIFIED BY 'controlpassword';</code><code>Query OK, 0 rows affected (0.00 sec)</code> sowie \\ <code>MariaDB> CREATE USER 'controluser'@'10.0.0.97' IDENTIFIED BY 'controlpassword';</code><code>Query OK, 0 rows affected (0.00 sec)</code>
   - **Datenbankverbindung beenden** \\ Unsere Konfiguration unseres neuen Datenbanknutzers ist hiermit beendet und wir können die Verbindung zur Datenbank wieder schließen. \\ <code>MariaDB> exit</code><code>Bye</code>   - **Datenbankverbindung beenden** \\ Unsere Konfiguration unseres neuen Datenbanknutzers ist hiermit beendet und wir können die Verbindung zur Datenbank wieder schließen. \\ <code>MariaDB> exit</code><code>Bye</code>
- 
- 
-===== Anwendungskonfiguration ===== 
-==== manueller Weg ==== 
-Möchte man die PHP-Anwendung per Hand editieren beutzt man seinen Editor der Wahl, so z.B. **vim**  
-   # vim /etc/phpMyAdmin/config.inc.php 
- 
-<file php /etc/phpMyAdmin/config.inc.php><?php                                                                                                                                                      
-/**                                                                                                                                                        
- * phpMyAdmin configuration file, you can use it as base for the manual                                                                                    
- * configuration. For easier setup you can use "setup/"                                                                                                  
-                                                                                                                                                         
- * All directives are explained in Documentation.html and on phpMyAdmin                                                                                    
- * wiki <http://wiki.phpmyadmin.net>                                                                                                                     
- */                                                                                                                                                        
- 
-/* 
- * This is needed for cookie based authentication to encrypt password in 
- * cookie                                                                
- */                                                                      
-$cfg['blowfish_secret'] = '19670814514121972'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ 
- 
-/** 
- * Server(s) configuration 
- */                        
-$i = 0;                    
- 
-// The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use 
-// $cfg['Servers'][0]. You can disable a server config entry by setting host 
-// to ''. If you want more than one server, just copy following section      
-// (including $i incrementation) serveral times. There is no need to define  
-// full server array, just define values you need to change.                 
-$i++;                                                                        
-$cfg['Servers'][$i]['host'         = 'localhost'; // MySQL hostname or IP address 
-$cfg['Servers'][$i]['port'         = '';          // MySQL port - leave blank for default port 
-$cfg['Servers'][$i]['socket'       = '';          // Path to the socket - leave blank for default socket 
-$cfg['Servers'][$i]['connect_type' = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket' 
-$cfg['Servers'][$i]['extension'    = 'mysqli';    // The php MySQL extension to use ('mysql' or 'mysqli') 
-$cfg['Servers'][$i]['compress'     = FALSE;       // Use compressed protocol for the MySQL connection     
-                                                    // (requires PHP >= 4.3.0)                              
-$cfg['Servers'][$i]['controluser'  = '';          // MySQL control user settings                          
-                                                    // (this user must have read-only                       
-$cfg['Servers'][$i]['controlpass'  = '';          // access to the "mysql/user"                           
-                                                    // and "mysql/db" tables).                              
-                                                    // The controluser is also                              
-                                                    // used for all relational                              
-                                                    // features (pmadb)                                     
-$cfg['Servers'][$i]['auth_type'    = 'cookie';    // Authentication method (config, http or cookie based)? 
-$cfg['Servers'][$i]['user'         = '';          // MySQL user                                            
-$cfg['Servers'][$i]['password'     = '';          // MySQL password (only needed                           
-                                                    // with 'config' auth_type)                              
-$cfg['Servers'][$i]['only_db'      = '';          // If set to a db-name, only                             
-                                                    // this db is displayed in left frame                    
-                                                    // It may also be an array of db-names, where sorting order is relevant. 
-$cfg['Servers'][$i]['hide_db'      = '';          // Database name to be hidden from listings                              
-$cfg['Servers'][$i]['verbose'      = '';          // Verbose name for this host - leave blank to show the hostname         
- 
-$cfg['Servers'][$i]['pmadb'        = '';          // Database used for Relation, Bookmark and PDF Features 
-                                                    // (see scripts/create_tables.sql)                       
-                                                    //   - leave blank for no support                        
-                                                    //     DEFAULT: 'phpmyadmin'                             
-$cfg['Servers'][$i]['bookmarktable'] = '';          // Bookmark table                                        
-                                                    //   - leave blank for no bookmark support               
-                                                    //     DEFAULT: 'pma_bookmark'                           
-$cfg['Servers'][$i]['relation'     = '';          // table to describe the relation between links (see doc) 
-                                                    //   - leave blank for no relation-links support          
-                                                    //     DEFAULT: 'pma_relation'                            
-$cfg['Servers'][$i]['table_info'   = '';          // table to describe the display fields 
-                                                    //   - leave blank for no display fields 
-                                                    //     DEFAULT: 'pma_table_info' 
-$cfg['Servers'][$i]['table_coords' = '';          // table to describe the tables position 
-                                                    //   - leave blank for no PDF schema sup 
-                                                    //     DEFAULT: 'pma_table_coords' 
-$cfg['Servers'][$i]['pdf_pages'    = '';          // table to describe pages of relationpd 
-                                                    //   - leave blank if you don't want to  
-                                                    //     DEFAULT: 'pma_pdf_pages' 
-$cfg['Servers'][$i]['column_info'  = '';          // table to store column information 
-                                                    //   - leave blank for no column comment 
-                                                    //     DEFAULT: 'pma_column_info' 
-$cfg['Servers'][$i]['history'      = '';          // table to store SQL history 
-                                                    //   - leave blank for no SQL query hist 
-                                                    //     DEFAULT: 'pma_history' 
-$cfg['Servers'][$i]['verbose_check'] = TRUE;        // set to FALSE if you know that your pm 
-                                                    // are up to date. This prevents compati 
-                                                    // checks and thereby increases performa 
-$cfg['Servers'][$i]['AllowRoot'    = TRUE;        // whether to allow root login 
-$cfg['Servers'][$i]['AllowDeny']['order'          // Host authentication order, leave blan 
-                                     = ''; 
-$cfg['Servers'][$i]['AllowDeny']['rules'          // Host authentication rules, leave blan 
-                                     = array(); 
-$cfg['Servers'][$i]['AllowNoPassword'             // Allow logins without a password. Do n 
-                                     = FALSE;       // default unless you're running a passw 
-$cfg['Servers'][$i]['designer_coords'             // Leave blank (default) for no Designer 
-                                     = '';          // set to suggested 'pma_designer_coords 
-$cfg['Servers'][$i]['bs_garbage_threshold'        // Blobstreaming: Recommented default va 
-                                     = 50;          //   DEFAULT: '50' 
-$cfg['Servers'][$i]['bs_repository_threshold'     // Blobstreaming: Recommented default va 
-                                     = '32M';       //   DEFAULT: '32M' 
-$cfg['Servers'][$i]['bs_temp_blob_timeout'        // Blobstreaming: Recommented default va 
-                                     = 600;         //   DEFAULT: '600' 
-$cfg['Servers'][$i]['bs_temp_log_threshold'       // Blobstreaming: Recommented default va 
-                                     = '32M';       //   DEFAULT: '32M' 
-/* 
- * End of servers configuration 
- */ 
- 
-/* 
- * Directories for saving/loading files from server 
- */ 
-$cfg['UploadDir'] = '/var/lib/phpMyAdmin/upload'; 
-$cfg['SaveDir'  = '/var/lib/phpMyAdmin/save'; 
- 
-/* 
- * Disable the default warning that is displayed on the DB Details Structure 
- * page if any of the required Tables for the relation features is not found 
- */ 
-$cfg['PmaNoRelation_DisableWarning'] = TRUE; 
-?> 
-</file> 
- 
-==== menügeführte Konfiguration ==== 
-Die komfortablere Variante ist sicherlich der Weg über die Webanwendung selbst. Die Konfigurationsseite von **phpMyAdmin** ist Dank unserer vHOST-Konfiguration an unserem Apache-Webserver,unter folgender URL erreichbar: http://phpmyadmin.nausch.org/setup/ 
-   $ firefox http://phpmyadmin.nausch.org/setup/ 
- 
-{{ :centos:web_c7:pma_001.png?direct&525 |Bild: Bildschirmhardcopy phpMyAdmin Setup}} 
- 
-Als erstes definieren wir unseren Datenbank-Server. Hierzu klicken wir auf die Schaltfläche **[ Neuer Server ]**. 
- 
-{{ :centos:web_c7:pma_003.png?direct&725 |Bild: Bildschirmhardcopy phpMyAdmin Setup}} 
- 
-Haben wir die entsprechenden Daten eingegeben, klicken wir auf die grün markierte Schaltfläche **[ Übernehmen ]**. Anschließend speichern wir die erstellte Konfiguration mit einem Klick auf die Schaltfläche **[ Speichern ]**. 
- 
-{{ :centos:web_c7:pma_017.png?direct&726 |Bild: Bildschirmhardcopy phpMyAdmin Setup}} 
- 
-Bei Bedarf können wir uns die erstellte und gespeicherte Konfigurationsdaten auch anzeigen lassen; \\ hierzu klicken wir auf die Schaltfläche **[ Anzeigen ]**. 
- 
-{{ :centos:web_c7:pma_016.png?direct&725 |Bild: Bildschirmhardcopy phpMyAdmin Setup}} 
- 
-Die mit der Web-GUI erstellte Konfigurationsdatei finden wir im Verzeichnis //**/var/lib/phpMyAdmin/config/**//. 
-   # less /var/lib/phpMyAdmin/config/config.inc.php 
- 
-<file php /var/lib/phpMyAdmin/config/config.inc.php><?php 
-/* 
- * Generated configuration file 
- * Generated by: phpMyAdmin 4.3.6 setup script 
- * Date: Thu, 22 Jan 2015 12:02:20 +0100 
- */ 
- 
-/* Servers configuration */ 
-$i = 0; 
- 
-/* Server: mysql.dmz.nausch.org [1] */ 
-$i++; 
-$cfg['Servers'][$i]['verbose'] = ''; 
-$cfg['Servers'][$i]['host'] = 'mariadb.dmz.nausch.org'; 
-$cfg['Servers'][$i]['port'] = ''; 
-$cfg['Servers'][$i]['socket'] = ''; 
-$cfg['Servers'][$i]['connect_type'] = 'tcp'; 
-$cfg['Servers'][$i]['auth_type'] = 'cookie'; 
-$cfg['Servers'][$i]['user'] = 'root'; 
-$cfg['Servers'][$i]['password'] = ''; 
- 
-/* End of servers configuration */ 
- 
-$cfg['blowfish_secret'] = '54c0b8d49cd537.48447377'; 
-$cfg['UploadDir'] = '/var/lib/phpMyAdmin/upload/'; 
-$cfg['SaveDir'] = '/var/lib/phpMyAdmin/save/'; 
-$cfg['ForceSSL'] = true; 
-$cfg['ServerLibraryDifference_DisableWarning'] = true; 
-$cfg['PmaNoRelation_DisableWarning'] = true; 
-$cfg['SuhosinDisableWarning'] = true; 
-$cfg['DefaultLang'] = 'de'; 
-$cfg['ServerDefault'] = 1; 
-?> 
-</file> 
- 
-===== erweiterte Konfiguration ===== 
  
  
 === Datenbank(tabellen) erstellen === === Datenbank(tabellen) erstellen ===
 Zum Erstellen der benötigten Tabelle greifen wir auf die Datei //**/usr/share/phpMyAdmin/examples/create_tables.sql**// zurück. Diese Musterdatei kopieren wir uns zunächst in das Verzeichnis //**/root/**//. Zum Erstellen der benötigten Tabelle greifen wir auf die Datei //**/usr/share/phpMyAdmin/examples/create_tables.sql**// zurück. Diese Musterdatei kopieren wir uns zunächst in das Verzeichnis //**/root/**//.
-   # cp /usr/share/phpMyAdmin/examples/create_tables.sql /root/create_pmadb_tables.sql+   # cp /usr/share/phpMyAdmin/sql/create_tables.sql /root/create_pmadb_tables.sql
  
 <WRAP round important> \\ Vor dem Start des Scriptes, muss dieses unbedingt noch den lokalen Gegebenheiten nach angepasst werden!</WRAP> <WRAP round important> \\ Vor dem Start des Scriptes, muss dieses unbedingt noch den lokalen Gegebenheiten nach angepasst werden!</WRAP>
Zeile 2171: Zeile 1993:
  
    Enter password:    Enter password:
 +
 +
 +
 +
 +
  
 === Zugriff testen === === Zugriff testen ===
Zeile 2220: Zeile 2047:
  
  
-FIXME //do geds weida ...// FIXME 
  
  
  
-<file php config.inc.php><?php+ 
 +===== Anwendungskonfiguration ===== 
 +==== manueller Weg ==== 
 +Möchte man die PHP-Anwendung per Hand editieren benutzt man seinen Editor der Wahl. Hilfreiche Informationen zu den möglichen Konfigurationsoptionen findet man dazu in der Onlinedokumentation im Verzeichnis //**doc/html/**//, also erreichbar über http://phpmyadmin.nausch.org/doc/html/index.html 
 +   $ firefox http://phpmyadmin.nausch.org/doc/html/index.html 
 + 
 +Zum Bearbeiten der Konfigurationsdatei nutzen wir z.B. **vim**. 
 +   # vim /etc/phpMyAdmin/config.inc.php 
 + 
 +<file php /etc/phpMyAdmin/config.inc.php><?php 
 +/** 
 + * phpMyAdmin configuration file, you can use it as base for the manual 
 + * configuration. For easier setup you can use "setup/"
 + *  
 + * All directives are explained in Documentation.html and on phpMyAdmin 
 + * wiki <http://wiki.phpmyadmin.net>
 + */ 
 + 
 +/* 
 + * This is needed for cookie based authentication to encrypt password in 
 + * cookie 
 + */ 
 +$cfg['blowfish_secret'] = '19670814514121972'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ 
 + 
 +/** 
 + * Server(s) configuration 
 + */ 
 +$i = 0; 
 + 
 +// The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use 
 +// $cfg['Servers'][0]. You can disable a server config entry by setting host 
 +// to ''. If you want more than one server, just copy following section 
 +// (including $i incrementation) serveral times. There is no need to define 
 +// full server array, just define values you need to change. 
 +$i++; 
 +$cfg['Servers'][$i]['host'         = 'localhost'; // MySQL hostname or IP address 
 +$cfg['Servers'][$i]['port'         = '';          // MySQL port - leave blank for default port 
 +$cfg['Servers'][$i]['socket'       = '';          // Path to the socket - leave blank for default socket 
 +$cfg['Servers'][$i]['connect_type' = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket'
 +$cfg['Servers'][$i]['extension'    = 'mysqli';    // The php MySQL extension to use ('mysql' or 'mysqli'
 +$cfg['Servers'][$i]['compress'     = FALSE;       // Use compressed protocol for the MySQL connection 
 +                                                    // (requires PHP >= 4.3.0) 
 +$cfg['Servers'][$i]['controluser'  = '';          // MySQL control user settings 
 +                                                    // (this user must have read-only 
 +$cfg['Servers'][$i]['controlpass'  = '';          // access to the "mysql/user" 
 +                                                    // and "mysql/db" tables). 
 +                                                    // The controluser is also 
 +                                                    // used for all relational 
 +                                                    // features (pmadb) 
 +$cfg['Servers'][$i]['auth_type'    = 'cookie';    // Authentication method (config, http or cookie based)? 
 +$cfg['Servers'][$i]['user'         = '';          // MySQL user 
 +$cfg['Servers'][$i]['password'     = '';          // MySQL password (only needed 
 +                                                    // with 'config' auth_type) 
 +$cfg['Servers'][$i]['only_db'      = '';          // If set to a db-name, only 
 +                                                    // this db is displayed in left frame 
 +                                                    // It may also be an array of db-names, where sorting order is relevant. 
 +$cfg['Servers'][$i]['hide_db'      = '';          // Database name to be hidden from listings 
 +$cfg['Servers'][$i]['verbose'      = '';          // Verbose name for this host - leave blank to show the hostname 
 + 
 +$cfg['Servers'][$i]['pmadb'        = '';          // Database used for Relation, Bookmark and PDF Features 
 +                                                    // (see scripts/create_tables.sql) 
 +                                                    //   - leave blank for no support 
 +                                                    //     DEFAULT: 'phpmyadmin' 
 +$cfg['Servers'][$i]['bookmarktable'] = '';          // Bookmark table 
 +                                                    //   - leave blank for no bookmark support 
 +                                                    //     DEFAULT: 'pma_bookmark' 
 +$cfg['Servers'][$i]['relation'     = '';          // table to describe the relation between links (see doc) 
 +                                                    //   - leave blank for no relation-links support 
 +                                                    //     DEFAULT: 'pma_relation' 
 +$cfg['Servers'][$i]['table_info'   = '';          // table to describe the display fields 
 +                                                    //   - leave blank for no display fields 
 +                                                    //     DEFAULT: 'pma_table_info' 
 +$cfg['Servers'][$i]['table_coords' = '';          // table to describe the tables position 
 +                                                    //   - leave blank for no PDF schema sup 
 +                                                    //     DEFAULT: 'pma_table_coords' 
 +$cfg['Servers'][$i]['pdf_pages'    = '';          // table to describe pages of relationpd 
 +                                                    //   - leave blank if you don't want to 
 +                                                    //     DEFAULT: 'pma_pdf_pages' 
 +$cfg['Servers'][$i]['column_info'  = '';          // table to store column information 
 +                                                    //   - leave blank for no column comment 
 +                                                    //     DEFAULT: 'pma_column_info' 
 +$cfg['Servers'][$i]['history'      = '';          // table to store SQL history 
 +                                                    //   - leave blank for no SQL query hist 
 +                                                    //     DEFAULT: 'pma_history' 
 +$cfg['Servers'][$i]['verbose_check'] = TRUE;        // set to FALSE if you know that your pm 
 +                                                    // are up to date. This prevents compati 
 +                                                    // checks and thereby increases performa 
 +$cfg['Servers'][$i]['AllowRoot'    = TRUE;        // whether to allow root login 
 +$cfg['Servers'][$i]['AllowDeny']['order'          // Host authentication order, leave blan 
 +                                     = ''; 
 +$cfg['Servers'][$i]['AllowDeny']['rules'          // Host authentication rules, leave blan 
 +                                     = array(); 
 +$cfg['Servers'][$i]['AllowNoPassword'             // Allow logins without a password. Do n 
 +                                     = FALSE;       // default unless you're running a passw 
 +$cfg['Servers'][$i]['designer_coords'             // Leave blank (default) for no Designer 
 +                                     = '';          // set to suggested 'pma_designer_coords 
 +$cfg['Servers'][$i]['bs_garbage_threshold'        // Blobstreaming: Recommented default va 
 +                                     = 50;          //   DEFAULT: '50' 
 +$cfg['Servers'][$i]['bs_repository_threshold'     // Blobstreaming: Recommented default va 
 +                                     = '32M';       //   DEFAULT: '32M' 
 +$cfg['Servers'][$i]['bs_temp_blob_timeout'        // Blobstreaming: Recommented default va 
 +                                     = 600;         //   DEFAULT: '600' 
 +$cfg['Servers'][$i]['bs_temp_log_threshold'       // Blobstreaming: Recommented default va 
 +                                     = '32M';       //   DEFAULT: '32M' 
 +/* 
 + * End of servers configuration 
 + */ 
 + 
 +/* 
 + * Directories for saving/loading files from server 
 + */ 
 +$cfg['UploadDir'] = '/var/lib/phpMyAdmin/upload'; 
 +$cfg['SaveDir'  = '/var/lib/phpMyAdmin/save'; 
 + 
 +/* 
 + * Disable the default warning that is displayed on the DB Details Structure 
 + * page if any of the required Tables for the relation features is not found 
 + */ 
 +$cfg['PmaNoRelation_DisableWarning'] = TRUE; 
 +?> 
 +</file> 
 + 
 +==== menügeführte Konfiguration ==== 
 +Die komfortablere Variante ist sicherlich der Weg über die Webanwendung selbst. Die Konfigurationsseite von **phpMyAdmin** ist Dank unserer vHOST-Konfiguration an unserem Apache-Webserver,unter folgender URL erreichbar: http://phpmyadmin.nausch.org/setup/ 
 +   $ firefox http://phpmyadmin.nausch.org/setup/ 
 + 
 +{{ :centos:web_c7:pma_01.png?direct&525 |Bild: Bildschirmhardcopy phpMyAdmin Setup}} 
 + 
 +Als erstes definieren wir unseren Datenbank-Server. Hierzu klicken wir auf die Schaltfläche **[ Neuer Server ]**. 
 + 
 +{{ :centos:web_c7:pma_02.png?direct&725 |Bild: Bildschirmhardcopy phpMyAdmin Setup}} 
 + 
 +Haben wir die entsprechenden Daten eingegeben, klicken wir auf die grün markierte Schaltfläche **[ Übernehmen ]**.  
 + 
 +{{ :centos:web_c7:pma_03.png?direct&725 |Bild: Bildschirmhardcopy phpMyAdmin Setup}} 
 + 
 +Beim Reiter **Serverkonfiguration** können wir festlegen, wie wir auf den Server zugreifen und welche Datenbank(tabellen) angezeigt werden sollen. Den Haken **✔** beim Punkt **Erlaube root login** entfernen wir! 
 + 
 +{{ :centos:web_c7:pma_04.png?direct&725 |Bild: Bildschirmhardcopy phpMyAdmin Setup}} 
 + 
 +Die Einstellungen zum Konfigurationsspeicher **PMADB** legen wir auf dem Reiter **Konfigurationsspeicher** fest. Dort tragen wir folgende (entsprechende individuelle) Werte ein. 
 + 
 +  Datenbankname                                                                 phpmyadmin 
 +  pmadb Host                                                                    [             ] 
 +  Kontroll-Port                                                                             ] 
 +  pmadb Benutzer                                                                controluser 
 +  pmadb Benutzer Passwort                                                       controlpassword 
 +  Lesezeichen Tabelle                                                           pma__bookmark 
 +  Relation Tabelle                                                              pma__relation 
 +  Tabelle für Benutzereinstellungen                                             pma__userconfig 
 +  Benutzer-Tabelle                                                              pma__users 
 +  Benutzergruppen-Tabelle                                                       pma__usergroups 
 +  Tabelle für ausgeblendete Navigations-Elemente                                pma__navigationhiding 
 +  Tabelle für Anzeigespalten                                                    pma__table_info 
 +  Spalten Informationen Tabelle                                                 pma__column_info 
 +  SQL Abfragehistorien Tabelle                                                  pma__history 
 +  Kürzlich verwendete Tabellen                                                  pma__recent 
 +  Tabelle für Oberflächeneinstellungen                                          pma__table_uiprefs 
 +  Tabelle mit Verfolgung der SQL-Abfragen                                       pma__tracking 
 +  Designer- und PDF Schema: Tabellenkoordinaten                                 pma__table_coords 
 +  PDF-Schema: Seiten-Tabelle                                                    pma__pdf_pages 
 +  Beispielabfragentabelle                                                       pma__savedsearches 
 +  Central columns tabele                                                        pma__central_columns 
 +  Maximale Anzahl der zu speichernden Tabelleneinstellungen                     100 
 + 
 +{{ :centos:web_c7:pma_05.png?direct&725 |Bild: Bildschirmhardcopy phpMyAdmin Setup}} 
 + 
 +Auf dem Reiter **Grundeinstellungen** setzen wir den Haken **✔** beim Punkt **Benutze SSL**. 
 + 
 +{{ :centos:web_c7:pma_06.png?direct&725 |Bild: Bildschirmhardcopy phpMyAdmin Setup}} 
 + 
 +Wie haben den Konfigurationspunkte **Übersicht** erfolgreich fertiggestellt. Nun Wählen wir den nächsten Konfigurationskapitel **Funktionen** am linken Bildschirmrand an.  
 +Auf dem Reiter **Import/Export** legen wir die beiden Verzeichnisse zum **Upload Verzeichnis** und **Speicher Verzeichnis** fest. 
 + 
 +{{ :centos:web_c7:pma_08.png?direct&725 |Bild: Bildschirmhardcopy phpMyAdmin Setup}} 
 + 
 +  Upload Verzeichnis                                                            /var/lib/phpMyAdmin/upload 
 +  Speicher Verzeichnis                                                          /var/lib/phpMyAdmin/save 
 + 
 +Auf den Reiter **Sicherheit** setzen wir den Haken **✔** beim Punkt **SSL-Verbindung erzwingen**. 
 + 
 +{{ :centos:web_c7:pma_07.png?direct&726 |Bild: Bildschirmhardcopy phpMyAdmin Setup}} 
 + 
 +Beim Konfigurationskapitel **SQL-Abfragen** setzen wir den  **✔** beim Punkt **Abfragelog speichern**. 
 + 
 +{{ :centos:web_c7:pma_10.png?direct&725 |Bild: Bildschirmhardcopy phpMyAdmin Setup}} 
 + 
 +Auf den Reitern des Konfigurationskapitel **Navigationspanel** übernehmen wir die Defaultwerte. 
 + 
 +Reiter **Navigationspanel**: 
 + 
 +{{ :centos:web_c7:pma_11.png?direct&725 |Bild: Bildschirmhardcopy phpMyAdmin Setup}} 
 + 
 +Reiter **Server**: 
 + 
 +{{ :centos:web_c7:pma_12.png?direct&725 |Bild: Bildschirmhardcopy phpMyAdmin Setup}} 
 + 
 +Reiter **Datenbanken**: 
 + 
 +{{ :centos:web_c7:pma_13.png?direct&725 |Bild: Bildschirmhardcopy phpMyAdmin Setup}} 
 + 
 +Reiter **Tabellen**: 
 + 
 +{{ :centos:web_c7:pma_14.png?direct&725 |Bild: Bildschirmhardcopy phpMyAdmin Setup}} 
 + 
 +Wie auch schon beim Kapitel **Navigationspanel** übernehmen wir beim Kapitel **Hauptpanel** die Defaultwerte. 
 + 
 +{{ :centos:web_c7:pma_15.png?direct&725 |Bild: Bildschirmhardcopy phpMyAdmin Setup}} 
 + 
 +Zum Speichern der Konfigurationswerte klicken wir im Konfigurationskapitel **Übersicht** auf die schaltfläche **[ Speichern ]** am unteren linke ende des Fensters. 
 + 
 +{{ :centos:web_c7:pma_17.png?direct&725 |Bild: Bildschirmhardcopy phpMyAdmin Setup}} 
 + 
 +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 ]**. 
 + 
 +{{ :centos:web_c7:pma_18.png?direct&725 |Bild: Bildschirmhardcopy phpMyAdmin Setup}} 
 + 
 +Die mit der Web-GUI erstellte Konfigurationsdatei finden wir im Verzeichnis //**/var/lib/phpMyAdmin/config/**//
 +   # less /var/lib/phpMyAdmin/config/config.inc.php 
 +<file php /var/lib/phpMyAdmin/config/config.inc.php><?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 2270: Zeile 2315:
 /* End of servers configuration */ /* End of servers configuration */
  
-$cfg['blowfish_secret'] = '54ac43fea9b587.19721214';+$cfg['blowfish_secret'] = '54ca09fae9b875.19509b16';
 $cfg['UploadDir'] = ''; $cfg['UploadDir'] = '';
 $cfg['SaveDir'] = ''; $cfg['SaveDir'] = '';
Zeile 2276: Zeile 2321:
 $cfg['DefaultLang'] = 'de'; $cfg['DefaultLang'] = 'de';
 $cfg['ServerDefault'] = 1; $cfg['ServerDefault'] = 1;
 +$cfg['UploadDir'] = '/var/lib/phpMyAdmin/upload';
 +$cfg['SaveDir'] = '/var/lib/phpMyAdmin/save';
 +$cfg['RecodingEngine'] = 'auto';
 ?> ?>
 </file> </file>
  
  
 +==== abschließende Konfiguration ====
  
-===== abschließende Konfiguration ===== +Die erstelle Konfigurationsdatei verschieben wir nun in das Konfigurationsverzeichnis //**/etc/phpMyAdmin**// von phpMyAdmin.
- +
-Diese Datei verschieben wir nun in das Konfigurationsverzeichnis //**/etc/phpMyAdmin**// von phpMyAdmin.+
    # mv /var/lib/phpMyAdmin/config/config.inc.php /etc/phpMyAdmin -f    # mv /var/lib/phpMyAdmin/config/config.inc.php /etc/phpMyAdmin -f
  
Zeile 2292: Zeile 2339:
    # rmdir /usr/share/phpMyAdmin/setup/    # rmdir /usr/share/phpMyAdmin/setup/
  
-Nun können wir die Applikation **phpMyAdmin** mit dem Browser unserer Wahl starten+Für die **Import / Export** Funktion benötigen wir noch die RPM-Pakete **recode** und **php-recode**; diese installieren wir nun unter zuhilfenahme von **yum**. 
-   $ firefox http://phpmyadmin.nausch.org/setup/+   # yum install recode php-recode -y
  
-{{ :centos:web_c7:pma_018.png?direct&525 |BildBildschirmhardcopy phpMyAdmin Login Seite}}+Haben wir eine mySQL-Datenbank, wie sie z.B. unter CentOS 6 noch verwendet wurde, kann es beim Aufruf der Webseite http://phpmyadmin.nausch.org zu folgender Fehlermeldung kommen.
  
-Nach erfolgter Anmeldung befinden wir uns im Hauptadministrationsfenster von **phpMyAdmin**. +{{ :centos:web_c7:pma_20.png?direct&725 |Bild: Bildschirmhardcopy phpMyAdmin Setup}}
- +
-{{ :centos:web_c7:pma_020.png?direct&666 |Bild: Bildschirmhardcopy phpMyAdmin Seite}}+
  
 <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 /usr/share/phpMyAdmin/libraries/common.inc.php    # vim /usr/share/phpMyAdmin/libraries/common.inc.php
Zeile 2321: Zeile 2366:
 </WRAP> </WRAP>
  
-   # yum install php-recode +===== Programmstart/-aufruf ===== 
- +Nun können wir die Applikation **phpMyAdmin** mit dem Browser unserer Wahl starten. 
 +   $ firefox http://phpmyadmin.nausch.org/setup/
  
 +{{ :centos:web_c7:pma_19.png?direct&725 |Bild: Bildschirmhardcopy phpMyAdmin Login Seite}}
  
 +Nach erfolgter Anmeldung befinden wir uns im Hauptadministrationsfenster von **phpMyAdmin**.
  
 +{{ :centos:web_c7:pma_020.png?direct&725 |Bild: Bildschirmhardcopy phpMyAdmin Seite}}
  
 +====== Links ======
 +  * **[[centos:web_c7:start| ⇐ Zurück zu Kapitel "Webserverinstallation unter CentOS 7.x"]]**
 +  * **[[wiki:start|Zurück zu Projekte und Themenkapitel]]**
 +  * **[[http://dokuwiki.nausch.org/doku.php/|Zurück zur Startseite]]**
  
  
  • centos/web_c7/phpmyadmin.1422554676.txt.gz
  • Zuletzt geändert: 29.01.2015 18:04.
  • von django