![]() ![]() You can use this phpMyAdmin Blowfish Secret Generator to generate a random string. You will need to enter new characters after $cfg = (up to 46 characters). Open /var/lib/phpmyadmin/blowfish_: $ sudo nano /var/ lib/ phpmyadmin/ blowfish_secret. Create a new phpMyAdmin folder: sudo mkdir /usr/share/phpmyadmin/ Change to directory: cd /usr/share/phpmyadmin/ 3. If you still see an error message like: The secret passphrase in configuration (blowfish_secret) is too short. Back up phpMyAdmin You should back up your current phpMyAdmin folder by renaming it: sudo mv /usr/share/phpmyadmin/ /usr/share/phpmyadmin.bak 2. Now log back in to phpMyAdmin and ensure the errors are gone. (Press CTRL + X, press Y and then press ENTER) PhpMyAdmin will now generate its own blowfish secret based on the install directory. The blowfish secret is used by phpMyAdmin for cookie authentication.Ĭhange line to: define( 'CONFIG_DIR', '/etc/phpmyadmin/') You may also see an error The configuration file now needs a secret passphrase (blowfish_secret). Open vendor_config.php: $ sudo nano /usr/share /phpmyadmin/libraries/vendor_config.phpĬhange line to: define( 'TEMP_DIR', '/var/lib/phpmyadmin/tmp/') phpMyAdmin is not able to cache templates and will be slow because of this. If you are seeing an error The $cfg (./tmp/) is not accessible. You may also see two errors: ERRORS & SOLUTIONS 1 You can now log back into phpMyAdmin and check the current version. We want to move the contents of this folder to /usr/share/phpmyadmin: $ sudo mv phpMyAdmin -4.8. You should see a new folder phpMyAdmin-4.8.5-all-languages Now you can log back into phpMyAdmin and check the current. Now extract: $ sudo tar xzf phpMyAdmin- 4.8. The solution is to manually upgrade phpMyAdmin downloading and installing the latest version. As of this writing, we are using version 4.8.5: $ sudo wget http s:// /phpMyAdmin/ 4.8. Go to the phpMyAdmin download page and look for the latest. ![]() Create a new phpMyAdmin folder: $ sudo mkdir /usr/share /phpmyadmin/Ĭhange to directory: $ cd /usr/share /phpmyadmin/ 3. ADVERTISEMENT Your system is ready for the phpMyAdmin installation. In this tutorial, we will download latest phpMyAdmin and configure on our system. In conclusion, you have the latest phpMyAdmin running on your Ubuntu system.You should back up your current phpMyAdmin folder by renaming it: $ sudo mv /usr/share /phpmyadmin/ /usr/share/phpmyadmin.bakĢ. Step 2 Install phpMyAdmin on Ubuntu 20.04 phpMyAdmin is also available under the default packages repository but mostly they have older version. Save the file and access the phpMyAdmin in a web browser.Īll done. define('TEMP_DIR', '/var/lib/phpmyadmin/tmp/') ĭefine('CONFIG_DIR', '/etc/phpmyadmin/') Therefore you need to specify the TEMP_DIR and CONFIG_DIR location under the vendor_config.php file.Įdit vendor_config.php file in your favorite text editor sudo vim /usr/share/phpmyadmin/libraries/vendor_config.phpĪnd update the following values. Sudo mv phpMyAdmin-*/* /usr/share/phpmyadmin/Īs I told the existing phpMyAdmin was installed with Apt package manager. Move this latest directory to the appropriate location. You will see a directory phpMyAdmin-all-languages in the current location. wget unzip phpMyAdmin-latest-all-languages.zip During last update of this article phpMyAdmin 4.8.5 is latest version available for download. Now, download the latest phpMyAdmin archive file from its official download page. sudo mv /usr/share/phpmyadmin/ /usr/share/phpmyadmin.bak However, I have just renamed it to phpmyadmin.bak at the same location. You should take a back up of your current phpMyAdmin directory. ![]() /usr/share/phpmyadmin – Main phpMyAdmin installation./var/lib/phpmyadmin – Library and tmp directries.PhpMyAdmin installation via Apt package manager create multiple directories:
0 Comments
Leave a Reply. |