
To configure IP based restriction, follow the procedures outlined below: Restricting Access to a Specific IP AddressĪn additional security measure you can take, is to restrict phpMyAdmin access to a specific IP or a set of IP addresses, this is a great security configuration if you have a static IP that does not change, however, if you use a dynamic IP configuration you may find yourself locked out as the IP address changes. You can now restart apache2 to apply the configuration and activate the additional layer of authentication.
#Phpmyadmin login page password
It is recommended that this password is unique from the phpMyAdmin password. You will be prompted to specify a new secure password. To create the user and password, the htpasswd utility can be used as follows, replacing with the username of your choice: sudo htpasswd -c /etc/phpmyadmin/.htpasswd htaccess file that contains the credentials will be stored under /etc/phpmyadmin/.htpasswd. As specified in the /usr/share/phpmyadmin/.htaccess file, the.

Once the symlinks have been created, phpMyAdmin will need to have the configuration files enabled, and apache2 will need to be restarted: sudo a2enconf phpmyadminĪfter restarting Apache2, the homepage for phpMyAdmin, will be freely accessible in your web browser using the following syntax: Login can be completed using the credentials that were created at the prompt when installing phpMyAdmin.ĪuthName "Stay Away" AuthUserFile /etc/phpmyadmin/.htpasswd Require valid-userĪfter creating the configuration, you now need to create the user and password for the authentication form. This can be completed by entering the following command: sudo ln -s /etc/phpmyadmin/nf /etc/apache2/conf-available/nf To enable phpMyAdmin access with Apache2, a symlink will need to be created for some configuration files so that phpMyAdmin will be able to access them. To restart the service, run the following command in the terminal: sudo systemctl restart apache2Ĭonfiguring phpMyAdmin To Work With Apache2
#Phpmyadmin login page install
Optionally, install additional cURL, JSON, and CGI support: sudo apt install php-curl php-json php-cgiĪfter installing phpMyAdmin you will need to enable the PHP mbstring module, this can be done by running the following command in the terminal: sudo phpenmod mbstringĪfter enabling the mbstring module, you will need to restart the apache2 service. Install PHP, the PHP Extension and Application Repository, Apache support, and MySQL support: sudo apt install php libapache2-mod-php php-mysql Install the mysql-server package: sudo apt install mysql-server

Install Apache 2.4 from the Ubuntu repository: sudo apt install apache2 The following steps can be used on Ubuntu 20.04 to install all of the required prerequisite software:
#Phpmyadmin login page software
The three pieces of software required are also commonly referred to as a LAMP stack. In order to install and secure phpMyAdmin, you need to have a Linux server with the following services running:

Search for objects in databases and tables.Create, modify and remove databases, tables, rows and fields.Create, modify and remove users and user permissions.These are some of the core features of phpMyAdmin: It is therefore a vital component to secure given the nature of data it is used to create and manage. PhpMyAdmin is widely adopted and used in both production and development environments by developers and system administrators. It makes the process of creating, modifying and configuring MySQL databases simpler and much more efficient. PhpMyAdmin is a free, open source, and cross platform PHP-based web application that offers a simple, powerful and convenient browser based GUI for interacting and working with MySQL databases.
