![]() It should open the phpmyadmin interface (as shown in the image below), whereas should result in a Not Found error page. Now we need to change the URL of our phpMyAdmin page, we simply need to rename the symbolic link as shown: # cd /usr/share/nginx/htmlįinally, restart Nginx and PHP-FPM to apply changes and point your browser to - On CentOS/RHEL and Fedora. # ln -s /usr/share/phpmyadmin /usr/share/nginx/html usr/share/nginx/html) by typing the following command: # ln -s /usr/share/phpMyAdmin /usr/share/nginx/html On the Nginx web server, we just need to create a symbolic link of PhpMyAdmin installation files to our Nginx document root directory (i.e. # echo "Include /etc/phpmyadmin/nf" > /etc/apache2/nfįinally, restart Apache to apply changes and point your browser to - On CentOS/RHEL and Fedora. In addition, make sure Apache reads the phpmyadmin configuration in Debian/Ubuntu: - On Debian and Ubuntu. In the same file, make sure the Require all granted directive is included inside the Directory /usr/share/phpmyadmin block. The above will allow us to access the phpmyadmin interface via Feel free to change the Alias above if you want to use another URL. Then add a new one as follows: # Alias /phpmyadmin /usr/share/phpmyadmin Open /etc/httpd/conf.d/nf if in CentOS or /etc/phpmyadmin/nf in Debian and comment out the line(s) beginning with Alias. To do it in Apache or Nginx Web servers, follow the instructions as explained below: Change PhpMyAdmin Login Page in Apache Note: Make sure you have working LAMP or LEMP setup with PhpMyAdmin installed on your system, if not, then follow Setup LAMP or LEMP with PhpMyAdmin. This is known as security through obscurity and while some people would argue that it is not a safe measure, it has been known to both discourage attackers and to prevent break-ins. This will not necessarily stop attackers from targeting your server, but will lower the risks of a successful break-in. By default, the login page of phpmyadmin is located at The first thing that you will want to do is changing that URL.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |