通过IP访问Php myadmin [英] Php myadmin access by IP

查看:155
本文介绍了通过IP访问Php myadmin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我通过我的IP访问WAMP服务器时,我能够访问php我的管理员mysql服务器。但是当我尝试从同一LAN网络中的另一台机器访问同一个网络时,我收到了Wamp Server Configuration页面。当我点击PHP信息我收到响应,但当我点击php我的管理员我得到禁止错误,但不是我的管理员和数据库的PHP。请注意我已经为所有用户授予了所有权限。

When I access the WAMP server by my IP am able to access php my admin mysql server. But when I try to access the same from another machine which is in same LAN network I receive Wamp Server Configuration page. When I click php info I receive the response but when I click php my admin I get forbidden error, but not the php my admin and database. Please note I have given all privileges for all user.

推荐答案

1。左键单击托盘上的wamp服务器图标,翻转Apache>文件夹,然后到别名目录>文件夹并在新面板中再次翻转到文件夹[localhost]>并选择文本编辑别名



2.在这个新文本文档的最后,您将看到它允许从主要访问phpmyadmin安装了wamp的电脑

允许来自127.0.0.1



所以你需要在那之后添加一行并允许局域网的IP只能从局域网计算机访问允许自192.168.1.64



查看以下全文



< directory>

选项索引FollowSymLinks MultiViews

AllowOverride all

订单拒绝,允许

拒绝所有

允许自127.0.0.1

允许来自192.168.1.64
1. left click on wamp server icon on tray, Rollover the Apache > folder and then to Alias directories > folder and in the new panel rollover again to the folder [localhost] > and choose the text "Edit alias"

2. In this new text document in the end of it you will see that it allows for phpmyadmin to be accesible from the main computer that the wamp is installed
"Allow from 127.0.0.1"

So you need after that to just add a line and allow the ip of the lan network to be accesible only from lan computers e.x. "Allow from 192.168.1.64"

See full text below

<directory>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from 192.168.1.64


这篇关于通过IP访问Php myadmin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆