A script for quickly and safely updating phpMyAdmin on a server. It automates the download, backup, installation, and configuration process.
- Automatically downloads the specified version of phpMyAdmin.
- Creates a backup of the existing phpMyAdmin directory (if it exists).
- Installs the new version to
/usr/share/phpmyadmin. - Configures the
blowfish_secretin theconfig.inc.phpfile with a randomly generated key. - Sets proper permissions for the
tmpfolder.
git clone https://github.com/AiratTop/phpmyadmin-update
cd phpmyadmin-update
sudo ./phpmyadmin-update.sh- The script assumes phpMyAdmin is installed in
/usr/share/phpmyadmin. If it is in a different directory, update thePMADIRvariable in the script. - Update the
VERvariable in the script to the desired phpMyAdmin version before running it. - A backup of the current phpMyAdmin directory is automatically created with a timestamped name (e.g.,
/usr/share/phpmyadmin.backup-<timestamp>). - The script ensures the
tmpdirectory is writable by settingchmod 777.
Feel free to suggest or add improvements if needed.
The original shell script and technical documentation in this repository are licensed under the Apache License 2.0, with copyright details in NOTICE.
phpMyAdmin is downloaded separately and is not covered by this repository's license. phpMyAdmin and the system tools used by the script remain subject to their respective licenses and terms.
AiratTop (Airat Halitov)
- Website: airat.top
- GitHub: @AiratTop
- Email: mail@airat.top
- Repository: phpmyadmin-update