![]() You don’t want those credentials going through the wire in plain text, so in the next tip we will explain how to setup a self-signed certificate for PhpMyAdmin login page. Secure PhpMyAdmin Login Pageĭo not login using the database root user’s credentials yet. Change default directory: cd /share/Qweb. Connect to it with ssh and give admin password: ssh -l admin 192.168.15.30. The following steps helped me: -Enable and start SSH on QNAP if it isn't already. It should open the phpmyadmin interface (as shown in the image below), whereas should result in a Not Found error page. Hi, I also had the same issue and apparently the installation doesn't create a link in the Qweb folder. 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. There should be a line like this: cfg 'Servers' i 'host' 'localhost' Just change localhost to your server's IP address. The config file is called and it will be in the main phpMyAdmin folder. In the same file, make sure the Require all granted directive is included inside the Directory /usr/share/phpmyadmin block. 6 Answers Sorted by: 34 In the config file, change the 'host' variable to point to the external server. 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 |