![]() We will create a new settings file inside /etc/phpmyadmin/conf.d, and name it pma_secure. We’ll create a new file to define our custom settings.Įven if the PHP files for the software are placed inside /usr/share/phpmyadmin, the application will use setup files located at /etc/phpmyadmin. ![]() With this, even if you give credentials for the user root, you won’t have your access allowed.Īs we used dbconfig-common to set up and store phpMyAdmin settings, the default configuration is now stored in the database. If you want to reinstall phpMyAdmin on Ubuntu, run: sudo apt-get update sudo apt-get install phpmyadmin Disable phpMyAdmin without uninstalling. It’s not only a privileged account, but also a known login name, which turns it into an obvious target for attacks.Īiming to minimize risks, we’ll configure phpMyAdmin to deny any login attempts that comes from the user root. On MySQL, the root account is a special administrative account with no restrictions to access the system. Now your interface will be available at the new URL you’ve just set up: By hiding phpMyAdmin’s real location on the server, you’re ensuring your interface is secure against automated scans and manual attempts. But first, let’s update the server’s package index using the following command: Through Ubuntu repositories, install phpMyAdmin on your LEMP server. Otherwise, ensure you enforce access via SSH Tunnels, as we’ll explain along this tutorial.
0 Comments
Leave a Reply. |