Home > Article > Backend Development > Ubuntu server changes the default access path of phpmyadmin
Reprinted from: http://gaoke0820.blog.163.com/blog/static/21664965201292894035369/
2012-10-29 08:32:09| Category: linux |Report|Font sizeSubscribe
Download LOFTER my photo book |
Just installed ubuntu server, configured apache+php+mysql, and then installed phpmyadmin through
sudo apt-get install phpmyadmin, so that you can access phpmyadmin through http://{$ip}/phpmyadmin, which is convenient. But when actually applied to a production environment, this is too exposed and unsafe. But phpmyadmin is very convenient, then we can modify the default access path of phpmyadmin and it will be ok. cd /etc/apache2/conf.dsudo vim phpmyadmin.confFind Alias /phpmyadmin
/usr/share/phpmyadmin
in the header and replace the first one above
/phpmyadmin with the one you want to use name, such as /phpmyadmin_admin, and then restart the apache service.
The directory here is not necessarily accurate. For example, in ubutun14.0.4 it is in /etc/apache2/conf-availble
The above introduces how to change the default access path of phpmyadmin on ubuntu server, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.