Home  >  Article  >  Backend Development  >  Ubuntu server changes the default access path of phpmyadmin

Ubuntu server changes the default access path of phpmyadmin

WBOY
WBOYOriginal
2016-07-29 08:55:351388browse

Reprinted from: http://gaoke0820.blog.163.com/blog/static/21664965201292894035369/

2012-10-29 08:32:09| Category: linux |Report|Font sizeSubscribe

ubuntu server 改变phpmyadmin的默认访问路径

Download LOFTER my photo book |

ubuntu server 改变phpmyadmin的默认访问路径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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn