how to access phpmyadmin remotely

蹲街弑〆低调 提交于 2019-12-01 00:54:52

问题


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>

回答1:


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



回答2:


# 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>



回答3:


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.




回答4:


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.




回答5:


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




回答6:


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

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



回答7:


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>



来源:https://stackoverflow.com/questions/6367330/how-to-access-phpmyadmin-remotely

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!