开发者

how to access phpmyadmin remotely

开发者 https://www.devze.com 2023-03-13 13:23 出处:网络
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

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

精彩评论

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