PhpMyAdmin: Unterschied zwischen den Versionen

Aus wiki.frank-wulf.de
Zur Navigation springen Zur Suche springen
 
(8 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
__FORCETOC__
=Upgrading phpMyAdmin=
=Upgrading phpMyAdmin=


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


Rename existing phpMyAdmin directory
<syntaxhighlight>mv /usr/share/phpmyadmin /usr/share/phpmyadmin-old</syntaxhighlight>


Create new directory
1. Rename existing phpMyAdmin directory
<syntaxhighlight>mkdir /usr/share/phpmyadmin</syntaxhighlight>
<syntaxhighlight lang="bash">mv /usr/share/phpmyadmin /usr/share/phpmyadmin-old</syntaxhighlight>


Change to new directory
2. Create new directory
<syntaxhighlight>cd /usr/share/phpmyadmin</syntaxhighlight>
<syntaxhighlight lang="bash">mkdir /usr/share/phpmyadmin</syntaxhighlight>


Download and extract phpMyAdmin archive
3. 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 lang="bash">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
4. Create directory for temporary files used by phpMyAdmin
<syntaxhighlight>mkdir tmp</syntaxhighlight>
<syntaxhighlight lang="bash">mkdir /usr/share/phpmyadmin/tmp && chown www-data:www-data /usr/share/phpmyadmin/tmp</syntaxhighlight>
<syntaxhighlight>chown www-data:www-data ./tmp</syntaxhighlight>


Copy original config file to new directory
5. Copy original config file to new directory
<syntaxhighlight>cp -r --preserve=all /usr/share/phpmyadmin-old/config.inc.php .</syntaxhighlight>
<syntaxhighlight lang="bash">cp -r --preserve=all /usr/share/phpmyadmin-old/config.inc.php /usr/share/phpmyadmin</syntaxhighlight>


Remove directories/files which are not needed anymore
6. Remove directory containing the old version
<syntaxhighlight>rm -rf phpMyAdmin-4.8.3-all-languages</syntaxhighlight>
<syntaxhighlight lang="bash">rm -rf /usr/share/phpmyadmin-old</syntaxhighlight>
<syntaxhighlight>rm -rf phpMyAdmin-4.8.3-all-languages.tar.gz</syntaxhighlight>
<syntaxhighlight>rm -rf /usr/share/phpmyadmin-old</syntaxhighlight>

Aktuelle Version vom 7. September 2019, 09:41 Uhr

Upgrading phpMyAdmin

As the distribution packages do not always provide the newest release these are the steps to upgrade manually.


1. Rename existing phpMyAdmin directory

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

2. Create new directory

mkdir /usr/share/phpmyadmin

3. 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

4. Create directory for temporary files used by phpMyAdmin

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

5. Copy original config file to new directory

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

6. Remove directory containing the old version

rm -rf /usr/share/phpmyadmin-old