PhpMyAdmin: Unterschied zwischen den Versionen

Aus wiki.frank-wulf.de
Zur Navigation springen Zur Suche springen
Zeile 9: Zeile 9:
Create new directory
Create new directory
<syntaxhighlight>mkdir /usr/share/phpmyadmin</syntaxhighlight>
<syntaxhighlight>mkdir /usr/share/phpmyadmin</syntaxhighlight>
Change to new directory
<syntaxhighlight>cd /usr/share/phpmyadmin</syntaxhighlight>


Download and extract phpMyAdmin archive
Download and extract phpMyAdmin archive
<syntaxhighlight>wget https://files.phpmyadmin.net/phpMyAdmin/4.8.3/phpMyAdmin-4.8.3-all-languages.tar.gz</syntaxhighlight>
<syntaxhighlight>wget -qO- https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz | tar -xzvf - -C /usr/share/phpmyadmin --strip-components=1</syntaxhighlight>
<syntaxhighlight>tar -zxpvf *</syntaxhighlight>
<syntaxhighlight>cd phpMyAdmin-4.8.3-all-languages</syntaxhighlight>
<syntaxhighlight>cp -r --preserve=all . ..</syntaxhighlight>
<syntaxhighlight>cd ..</syntaxhighlight>


Create directory for temporary files used by phpMyAdmin
Create directory for temporary files used by phpMyAdmin
<syntaxhighlight>mkdir tmp</syntaxhighlight>
<syntaxhighlight>mkdir /usr/share/phpmyadmin/tmp</syntaxhighlight>
<syntaxhighlight>chown www-data:www-data ./tmp</syntaxhighlight>
<syntaxhighlight>chown www-data:www-data /usr/share/phpmyadmin/tmp</syntaxhighlight>


Copy original config file to new directory
Copy original config file to new directory

Version vom 2. September 2018, 18:43 Uhr

Upgrading phpMyAdmin

As the distribution packages do not always provide the newest release of phpMyAdmin this is how to upgrade manually.


Rename existing phpMyAdmin directory

mv /usr/share/phpmyadmin /usr/share/phpmyadmin-old

Create new directory

mkdir /usr/share/phpmyadmin

Download and extract phpMyAdmin archive

wget -qO- https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz | tar -xzvf - -C /usr/share/phpmyadmin --strip-components=1

Create directory for temporary files used by phpMyAdmin

mkdir /usr/share/phpmyadmin/tmp
chown www-data:www-data /usr/share/phpmyadmin/tmp

Copy original config file to new directory

cp -r --preserve=all /usr/share/phpmyadmin-old/config.inc.php .

Remove directories/files which are not needed anymore

rm -rf phpMyAdmin-4.8.3-all-languages phpMyAdmin-4.8.3-all-languages.tar.gz /usr/share/phpmyadmin-old