更改 phpmyadmin 默认 url [英] changing the phpmyadmin default url

查看:39
本文介绍了更改 phpmyadmin 默认 url的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何更改 phpMyAdmin 的默认 URL.我在 CentOS 6 VPS 上使用最新版本 (4.0.4.1).我想将其从/phpmyadmin 更改为更安全的内容.我不确定如何执行此操作,或者如果有我的 apache.conf 文件,甚至可以在何处找到?

I am wondering how to change the default URL for phpMyAdmin. I am using the latest version (4.0.4.1) on my CentOS 6 VPS. I am wanting to change it from /phpmyadmin to something more secure. I am unsure how to do this or where to even find my apache.conf file if there is one?

谢谢!

推荐答案

对于 ubuntu(我使用的是 ubuntu 12.04),默认的 phpmyadmin apache 配置可以在 /etc/phpmyadmin/apache.conf

For ubuntu (i used ubuntu 12.04), the default phpmyadmin apache configuration can be found at /etc/phpmyadmin/apache.conf

您可以通过输入sudo nano/etc/phpmyadmin/apache.conf打开它并更改第三个

You can open it by type sudo nano /etc/phpmyadmin/apache.conf and change the third

Alias /yournewalias /usr/share/phpmyadmin

别忘了重启apache服务,

Do not forget to restart apache service,

sudo service apache2 restart

这篇关于更改 phpmyadmin 默认 url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆