开发者

how to access phpmyadmin remotely

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>


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


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


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.


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.


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 ?

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


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>

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜