如何远程访问phpmyadmin

发布于 2024-11-15 10:45:55 字数 237 浏览 6 评论 0原文

是否可以从外网访问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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

乖乖公主 2024-11-22 10:45:56

转到 C:\wamp\alias 并编辑文件 phpmyadmin

# to give access to phpmyadmin from outside 
# replace the lines
#
#    Order Deny,Allow
#    Deny from all
#    Allow from 127.0.0.1
#
# by
#
#   Order Allow,Deny 
#   Allow from all

Go to C:\wamp\alias and edit the file phpmyadmin

# to give access to phpmyadmin from outside 
# replace the lines
#
#    Order Deny,Allow
#    Deny from all
#    Allow from 127.0.0.1
#
# by
#
#   Order Allow,Deny 
#   Allow from all
坚持沉默 2024-11-22 10:45:56
# Edit C:\wamp\alias\phpmyadmin.conf  
# Below is v3.5.1 - the current version is 4.0.4.1

Alias /phpmyadmin "c:/wamp/apps/phpmyadmin3.5.1/" 

# to give access to phpMyAdmin from outside 
# replace the lines
#
# Require local
#
# by
#
# Require all granted
#

<Directory "c:/wamp/apps/phpmyadmin3.5.1/">
   Options Indexes FollowSymLinks MultiViews
   AllowOverride all
   Require all granted
</Directory>
# Edit C:\wamp\alias\phpmyadmin.conf  
# Below is v3.5.1 - the current version is 4.0.4.1

Alias /phpmyadmin "c:/wamp/apps/phpmyadmin3.5.1/" 

# to give access to phpMyAdmin from outside 
# replace the lines
#
# Require local
#
# by
#
# Require all granted
#

<Directory "c:/wamp/apps/phpmyadmin3.5.1/">
   Options Indexes FollowSymLinks MultiViews
   AllowOverride all
   Require all granted
</Directory>
醉酒的小男人 2024-11-22 10:45:56

您使用的是 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.

尸血腥色 2024-11-22 10:45:56

在我看来,好像您正在尝试从远程网络访问私有地址。你不能。您必须在您的计算机上配置一个网络服务器,并在您的服务器上使用 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.

最偏执的依靠 2024-11-22 10:45:56

仅供遇到此类问题的其他用户参考。我想提醒大家,除了更改目录之外,您还必须检查您的防火墙设置。

这发生在我身上,我已经更改了所有内容(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

俯瞰星空 2024-11-22 10:45:56

你这样尝试过吗?也许您应该在网络中添加目录名称?

<Directory "/Documents and Settings/All Users/Documents/xampp/phpMyAdmin">
...
...
...
...
</Directory>

Did you try like this ? Maybe you shuld add directory name in your network ?

<Directory "/Documents and Settings/All Users/Documents/xampp/phpMyAdmin">
...
...
...
...
</Directory>
三生路 2024-11-22 10:45:56

将以下代码放入文件中
D:\wamp\alias\phpmyadmin.conf

<目录“D:/wamp/apps/phpmyadmin3.2.0.1/”>

Options Indexes FollowSymLinks MultiViews
AllowOverride all
    Order Deny,Allow
Allow from all
Allow from 127.0.0.1

< /目录>

Put below code in file
D:\wamp\alias\phpmyadmin.conf

< Directory "D:/wamp/apps/phpmyadmin3.2.0.1/">

Options Indexes FollowSymLinks MultiViews
AllowOverride all
    Order Deny,Allow
Allow from all
Allow from 127.0.0.1

< /Directory>

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文