Skip to content

AiratTop/airat-phpmyadmin-update

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

airat-phpmyadmin-update

A script for quickly and safely updating phpMyAdmin on a server. It automates the download, backup, installation, and configuration process.

Features:

  • 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_secret in the config.inc.php file with a randomly generated key.
  • Sets proper permissions for the tmp folder.

Installation and Usage:

git clone https://github.com/AiratTop/airat-phpmyadmin-update

cd airat-phpmyadmin-update

sudo ./airat-phpmyadmin-update.sh

Notes:

  • The script assumes phpMyAdmin is installed in /usr/share/phpmyadmin. If it is in a different directory, update the PMADIR variable in the script.
  • Update the VER variable 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 tmp directory is writable by setting chmod 777.

Feel free to suggest or add improvements if needed.

About

A script for quickly updating phpMyAdmin on a server by Airat Halitov

Topics

Resources

License

Stars

Watchers

Forks

Languages