This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| deb13:phpmyadmin [2026/09/26 10:19] – Bernard Condrau | deb13:phpmyadmin [2026/09/26 10:42] (current) – [apache2 Configuration] Bernard Condrau | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== phpMyAdmin ====== | ||
| ===== Remove repository-installation ===== | ===== Remove repository-installation ===== | ||
| - **Purge the Package and dependencies if you previously installed it from Debian' | - **Purge the Package and dependencies if you previously installed it from Debian' | ||
| Line 19: | Line 20: | ||
| ===== Installation ===== | ===== Installation ===== | ||
| - | - We will not use any of the standard | + | - We will not use any of the standard |
| - Navigate to ''/ | - Navigate to ''/ | ||
| sudo wget https:// | sudo wget https:// | ||
| Line 26: | Line 27: | ||
| sudo mv phpMyAdmin-*-english phpmyadmin | sudo mv phpMyAdmin-*-english phpmyadmin | ||
| </ | </ | ||
| - | - Create the configuration file from the sample template and generate a secure blowfish secret for cookie encryption:< | + | - Create the temporary folder required by phpMyAdmin and assign proper web server ownership:< |
| - | - Generate a 32-character random string using OpenSSL:< | + | $ sudo chown -R www-data: |
| - | - Open ''/ | + | $ sudo chmod -R o-rwx / |
| - | Use code with caution.Create the temporary folder required by phpMyAdmin and assign proper web server ownership:bashsudo | + | |
| - | sudo chown -R www-data: | + | |
| - | sudo chmod -R 0755 / | + | |
| - | + | ||
| - | - Unzip the tarball, then move the folder to a local folder outside of apache' | + | |
| - | sudo mv phpMyAdmin-5.2.3-english/ | + | |
| - | $ sudo chown -R www-data: | + | |
| - 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. '' | - 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 // | * __Note__: Debian 10 dropped // | ||
| - | Step 2: | + | |
| - | ===== Configuration ===== | + | ===== phpMyAdmin |
| - | - We will not use any of the standard path used in Debian versions up to 9 or in other distributions. All files related to phpMyAdmin will remain in the custom path where we moved the downloaded files which is the easiest way for maintenance | + | - Create |
| - | - Make a new directory | + | - Generate a 32-character random string using OpenSSL:< |
| - | - Copy '' | + | - Open '' |
| - | - Use the [[https:// | + | - Add custom settings:< |
| - | $cfg[' | + | |
| - | - Add the following | + | |
| $cfg[' | $cfg[' | ||
| $cfg[' | $cfg[' | ||
| Line 51: | 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 107: | 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 116: | 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:// | ||