PhpMyAdmin (Ubuntu): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 12: Zeile 12:
sudo add-apt-repository ppa:nijel/phpmyadmin
sudo add-apt-repository ppa:nijel/phpmyadmin
</pre>
</pre>
Bei Fehlen des Befehles ''add-apt-repository'' siehe auch [[add-apt-repository (Linux)|add-apt-repository]]


==== Installation ====
==== Installation ====

Version vom 28. Dezember 2019, 12:25 Uhr

Voraussetzungen

Voraussetzung ist ein Apache-Webserver (siehe dazu Apache HTTP)

Installation

Per Repository

PPA-Repository hinzufügen

sudo add-apt-repository ppa:nijel/phpmyadmin

Bei Fehlen des Befehles add-apt-repository siehe auch add-apt-repository

Installation

sudo apt-get update
sudo apt-get install phpmyadmin

Konfiguration

sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/sites-available/phpmyadmin.conf
cd /etc/apache2/sites-available/
sudo a2ensite phpmyadmin.conf 
service apache2 reload

Links

https://launchpad.net/~nijel/+archive/ubuntu/phpmyadmin

Per Tar-Ball

Download

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

Installation

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';

Links

https://wiki.ubuntuusers.de/MySQL/Werkzeuge/

https://www.phpmyadmin.net/


Zurück zu Ubuntu