This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| deb13:phpmyadmin [2026/09/26 10:08] – created Bernard Condrau | deb13:phpmyadmin [2026/09/26 10:42] (current) – [apache2 Configuration] Bernard Condrau | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Configuration | + | ====== phpMyAdmin ====== |
| - | - We will not use any of the standard | + | ===== Remove repository-installation ===== |
| - | - Make a new directory for phpMyAdmin | + | - **Purge the Package and dependencies if you previously installed it from Debian' |
| - | - Copy '' | + | sudo apt autoremove --purge</ |
| - | - Use the [[https:// | + | - **Delete remaining configuration & web root leftovers**: |
| - | $cfg[' | + | sudo rm -rf / |
| - | - Add the following | + | sudo rm -rf / |
| + | - **Clear web server configurations**: | ||
| + | sudo rm -f / | ||
| + | sudo systemctl reload apache2</ | ||
| + | - **Remove the phpMyAdmin storage database**: If dbconfig-common didn't automatically drop the internal tracking database, log into your MySQL/ | ||
| + | DROP DATABASE IF EXISTS phpmyadmin; | ||
| + | DROP USER IF EXISTS ' | ||
| + | FLUSH PRIVILEGES; | ||
| + | # check databases and users | ||
| + | SHOW DATABASES; | ||
| + | SELECT User, Host FROM mysql.user; | ||
| + | EXIT; | ||
| + | </ | ||
| + | |||
| + | ===== Installation | ||
| + | - We will not use any of the standard | ||
| + | - Navigate to ''/ | ||
| + | sudo wget https://www.phpmyadmin.net/ | ||
| + | sudo tar -xvzf phpMyAdmin-latest-english.tar.gz | ||
| + | sudo rm phpMyAdmin-latest-english.tar.gz | ||
| + | sudo mv phpMyAdmin-*-english phpmyadmin | ||
| + | </ | ||
| + | - Create the temporary | ||
| + | $ sudo chown -R www-data: | ||
| + | $ sudo chmod -R o-rwx / | ||
| + | - To upgrade to a newer version simply download the new version and extract it to the same folder. Files created by the user will remain the same, e.g. '' | ||
| + | * __Note__: Debian 10 dropped | ||
| + | |||
| + | ===== phpMyAdmin | ||
| + | - Create the configuration file from the sample template and generate | ||
| + | - Generate a 32-character random string using OpenSSL:< | ||
| + | - Open ''/ | ||
| + | - Add custom settings:< | ||
| $cfg[' | $cfg[' | ||
| $cfg[' | $cfg[' | ||
| Line 11: | Line 43: | ||
| $cfg[' | $cfg[' | ||
| $cfg[' | $cfg[' | ||
| - | | + | |
| - | - Leave the commented out settings in '' | + | - Leave the commented out settings in '' |
| - | - Create ''/ | + | |
| + | ===== apache2 Configuration ===== | ||
| + | - Create ''/ | ||
| Alias /phpmyadmin / | Alias /phpmyadmin / | ||
| Line 67: | Line 101: | ||
| </ | </ | ||
| </ | </ | ||
| - | - You can replace | + | - Enable |
| - | - Symlink the configuration file for Apache | + | $ sudo apachectl configtest |
| - | $ sudo service apache2 | + | $ sudo systemctl |
| - | - Create a regular MariaDB user for the purpose of managing databases through phpMyAdmin, if you haven' | + | - Create a regular MariaDB user for the purpose of managing databases through phpMyAdmin, if you haven' |
| MariaDB [(none)]> | MariaDB [(none)]> | ||
| MariaDB [(none)]> | MariaDB [(none)]> | ||
| Line 76: | Line 110: | ||
| MariaDB [(none)]> | MariaDB [(none)]> | ||
| - Make sure permissions are set to traverse directories, | - Make sure permissions are set to traverse directories, | ||
| + | |||
| + | ===== Run phpMyAdmin ===== | ||
| + | - Access phpMyAdmin by appending ''/ | ||
| + | - You will get a warning // | ||
| + | - Now click **Setup configuration storage**. | ||
| + | |||
| + | ==== Links ==== | ||
| + | * phpMyAdmin [[https:// | ||