如何远程访问phpmyadmin
是否可以从外网访问phpmyadmin? 我在哪里设置它?我尝试编辑 httpd.conf,并从 wampserver 重新启动所有服务,但它不起作用
<Directory />
Options FollowSymLinks
AllowOverride None
Order Allow,Deny
Allow from all
</Directory>
Is it possible to access phpmyadmin from outside the network?
Where do I set it? I tried editing httpd.conf, and restarted all services from wampserver but it doesn't work
<Directory />
Options FollowSymLinks
AllowOverride None
Order Allow,Deny
Allow from all
</Directory>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
转到 C:\wamp\alias 并编辑文件 phpmyadmin
Go to C:\wamp\alias and edit the file phpmyadmin
您使用的是 Unix 还是 Windows?如果在 Unix 上,请检查 phpMyAdmin 安装目录的所有者/权限 - 这可能与它有关。
Are you on Unix or Windows? If on Unix, check the owner/permissions for the directory that phpMyAdmin is installed under - that might have something to do with it.
在我看来,好像您正在尝试从远程网络访问私有地址。你不能。您必须在您的计算机上配置一个网络服务器,并在您的服务器上使用 ddns(如果您没有固定的公共 IP)服务。您可能还需要将路由器上的端口 80 传入流量重定向到网络服务器计算机。
It looks to me as if you're trying to access a private address from a remote network. You can't. You will have to configure a webserver on your machine and use a ddns (in case you don't have a fixed public ip) service on your server. You will probablly have to redirect port 80 incoming traffic on your router pointing to the webserver machine also.
仅供遇到此类问题的其他用户参考。我想提醒大家,除了更改目录之外,您还必须检查您的防火墙设置。
这发生在我身上,我已经更改了所有内容(xampp 中的所有配置)但仍然无法连接。我几乎放弃了,然后我想起了防火墙。我更改设置后一切正常。
只是分享
just for reference of other users who will encounter this kind of issue I would like to remind everyone that aside from changing directories, you must also have to check your firewall settings.
It happened to me, I've changed everything (all config in xampp) but still cannot connect. I almost gave up and then I remembered firewall. After I changed my settings it all works fine.
just sharing
你这样尝试过吗?也许您应该在网络中添加目录名称?
Did you try like this ? Maybe you shuld add directory name in your network ?
将以下代码放入文件中
D:\wamp\alias\phpmyadmin.conf
<目录“D:/wamp/apps/phpmyadmin3.2.0.1/”>
< /目录>
Put below code in file
D:\wamp\alias\phpmyadmin.conf
< Directory "D:/wamp/apps/phpmyadmin3.2.0.1/">
< /Directory>