PhpMyAdmin (Ubuntu): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 1: | Zeile 1: | ||
=== phpMyAdmin === | |||
Voraussetzung ist ein Apache-Webserver (siehe dazu [[Apache]]) | |||
==== Installieren ==== | |||
===== PPA ===== | |||
<pre> | |||
sudo add-apt-repository ppa:nijel/phpmyadmin | |||
sudo apt-get update | |||
sudo apt-get install phpmyadmin | |||
</pre> | |||
===== Tar-Ball ===== | |||
Aktuellen Downloadpfad unter [https://www.phpmyadmin.net/downloads/ https://www.phpmyadmin.net/downloads/] nachschauen. | |||
<pre style="white-space: pre-wrap; | |||
white-space: -moz-pre-wrap; | |||
white-space: -pre-wrap; | |||
white-space: -o-pre-wrap; | |||
word-wrap: break-word;"> | |||
wget https://files.phpmyadmin.net/phpMyAdmin/4.5.5.1/phpMyAdmin-4.5.5.1-all-languages.tar.gz | |||
tar -xzvf phpMyAdmin-*.*.*.*.tar.gz | |||
sudo mv phpMyAdmin-4.5.5.1-all-languages/ /var/www/phpmyadmin | |||
sudo chown -R www-data:www-data /var/www/phpmyadmin/ | |||
</pre> | |||
==== Konfigurieren Apache ==== | |||
Konfigurationsdatei <code>/etc/apache2/conf-available/phpmyadmin.conf</code> anlegen: | |||
<pre style="white-space: pre-wrap; | |||
white-space: -moz-pre-wrap; | |||
white-space: -pre-wrap; | |||
white-space: -o-pre-wrap; | |||
word-wrap: break-word;"> | |||
sudo touch /etc/apache2/conf-available/phpmyadmin.conf | |||
</pre> | |||
Und folgenden Inhalt einfügen: | |||
<pre style="white-space: pre-wrap; | |||
white-space: -moz-pre-wrap; | |||
white-space: -pre-wrap; | |||
white-space: -o-pre-wrap; | |||
word-wrap: break-word;"> | |||
Alias /phpmyadmin "/var/www/phpmyadmin/" | |||
<Directory "/var/www/phpmyadmin"> | |||
Options +FollowSymLinks | |||
AllowOverride All | |||
<IfModule mod_dav.c> | |||
Dav off | |||
</IfModule> | |||
SetEnv HOME /var/www/phpmyadmin | |||
SetEnv HTTP_HOME /var/www/phpmyadmin | |||
</Directory> | |||
</pre> | |||
Konfiguration aktivieren: | |||
<pre style="white-space: pre-wrap; | |||
white-space: -moz-pre-wrap; | |||
white-space: -pre-wrap; | |||
white-space: -o-pre-wrap; | |||
word-wrap: break-word;"> | |||
cd /etc/apache2/conf-available/ | |||
sudo a2enconf phpmyadmin.conf | |||
sudo service apache2 reload | |||
</pre> | |||
==== Konfiguration phpMyAdmin ==== | |||
<pre style="white-space: pre-wrap; | |||
white-space: -moz-pre-wrap; | |||
white-space: -pre-wrap; | |||
white-space: -o-pre-wrap; | |||
word-wrap: break-word;"> | |||
cd /var/www/phpmyadmin/ | |||
sudo cp config.sample.inc.php config.inc.php | |||
sudo chown www-data:www-data config.inc.php | |||
</pre> | |||
In der Datei ''config.inc.php'' genügt es fürs Erste folgende Zeile anzupassen: | |||
<pre style="white-space: pre-wrap; | |||
white-space: -moz-pre-wrap; | |||
white-space: -pre-wrap; | |||
white-space: -o-pre-wrap; | |||
word-wrap: break-word;"> | |||
$cfg['blowfish_secret'] = 'a8b7c6d'; | |||
</pre> | |||
Zurück zu [[Ubuntu#P (Server)|Ubuntu]] | Zurück zu [[Ubuntu#P (Server)|Ubuntu]] |
Version vom 13. Januar 2018, 16:33 Uhr
phpMyAdmin
Voraussetzung ist ein Apache-Webserver (siehe dazu Apache)
Installieren
PPA
sudo add-apt-repository ppa:nijel/phpmyadmin sudo apt-get update sudo apt-get install phpmyadmin
Tar-Ball
Aktuellen Downloadpfad unter https://www.phpmyadmin.net/downloads/ nachschauen.
wget https://files.phpmyadmin.net/phpMyAdmin/4.5.5.1/phpMyAdmin-4.5.5.1-all-languages.tar.gz tar -xzvf phpMyAdmin-*.*.*.*.tar.gz sudo mv phpMyAdmin-4.5.5.1-all-languages/ /var/www/phpmyadmin sudo chown -R www-data:www-data /var/www/phpmyadmin/
Konfigurieren Apache
Konfigurationsdatei /etc/apache2/conf-available/phpmyadmin.conf
anlegen:
sudo touch /etc/apache2/conf-available/phpmyadmin.conf
Und folgenden Inhalt einfügen:
Alias /phpmyadmin "/var/www/phpmyadmin/" <Directory "/var/www/phpmyadmin"> Options +FollowSymLinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/phpmyadmin SetEnv HTTP_HOME /var/www/phpmyadmin </Directory>
Konfiguration aktivieren:
cd /etc/apache2/conf-available/ sudo a2enconf phpmyadmin.conf sudo service apache2 reload
Konfiguration phpMyAdmin
cd /var/www/phpmyadmin/ sudo cp config.sample.inc.php config.inc.php sudo chown www-data:www-data config.inc.php
In der Datei config.inc.php genügt es fürs Erste folgende Zeile anzupassen:
$cfg['blowfish_secret'] = 'a8b7c6d';
Zurück zu Ubuntu