The default is /var/sudo mv /var/www/html/phpmyadmin /var/www/html/pma_hidden Make sure you enter the correct document root here. In step 2, we created a symbolic link in the document root /var/www/html/phpmyadminĪll we need to do is to rename this symbolic link, in this example, to: pma_hidden. In this example we are going to change it from /phpmyadmin to /pma_hidden. 4. Obscure URL (Optional)īots and attackers continuously scan web servers for the phpMyAdmin login page, so it is recommended that you change the URL to something else. You’re done! If you would like to set up some additional security for phpMyAdmin, continue to Step 4 and Step 5. You will have set up this root user and password when installing MySQL for the first time. If you don’t have a domain name yet or don’t know your IP, you can find out with: ip addr show eth0 | grep inet | awk '' | sed 's/\/.*$//' You should now be able to access the phpMyAdmin web interface by visiting your server’s domain name or public IP address followed by /phpmyadmin. Here we will assume your document root is /var/sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin 3. Test phpMyAdmin The default location of the Nginx document root should be /var/Let’s create a symbolic link from the phpMyAdmin directory to your document root. In order for Nginx to serve the phpMyAdmin files correctly, we must create a symbolic link from the phpMyAdmin directory /usr/share/phpmyadmin to the Nginx document root directory. The MySQL application password is only used internally by phpMyAdmin to communicate with MySQL. You can leave this blank and a password will be generated automatically. Select Yes and press ENTER to install and configure the database. sudo apt-get update sudo apt-get install phpmyadminĪs there is no option for Nginx here, press TAB and then ENTER to continue without selecting a web server. Let’s begin by updating the list of available packages and installing phpMyAdmin. If you don’t have these installed yet, please see Installing a LEMP Stack (Nginx, MySQL, PHP) on Ubuntu 16.04 / 17.10 1. You should also have your LEMP stack (Nginx, MySQL and PHP) already installed before continuing with this guide. You should be using a non-root user with sudo privileges as explained in Ubuntu 16.04 / 17.10 Initial Server Setup. In this guide we will install and configure phpMyAdmin to work with Nginx on Ubuntu 16.04 / 17.10.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |