Skip to content

Latest commit

 

History

41 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phpmyadmin-update

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/phpmyadmin-update

cd phpmyadmin-update

sudo ./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.

License

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.


Author

AiratTop (Airat Halitov)

About

A script for quickly updating phpMyAdmin on a server

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages