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.
This project is licensed under the MIT License - see the LICENSE file for details.
AiratTop
- Website: airat.top
- GitHub: @AiratTop
- Repository: phpmyadmin-update