PhpMyAdmin (Ubuntu)

Aus Tutorials
Zur Navigation springen Zur Suche springen

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 vi /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:

/**
 * This is needed for cookie based authentication to encrypt password in
 * cookie. Needs to be 32 chars long.
 */
$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

Links

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

https://www.phpmyadmin.net/


Zurück zu Ubuntu