Connect to localhost from another computer in network

六月ゝ 毕业季﹏ 提交于 2019-12-21 21:33:08

问题


I have installed WAMP on one computer, and I want to connect to the phpmyadmin from another one. When I type, in a browser, 192.168.1.2/localhost i got following message:

Forbidden You don't have permission to access /localhost on this server.

I have changed this line in Apache:

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Allow from all * from deny from all
</Directory>

How can I fix this?


回答1:


You should try it without localhost. So if you access phpmyadmin on localhost as localhost:8080/phpmyadmin then you should do 192.168.1.2:8080/phpmyadmin

UPDATE:

Change the file content

c:\wamp\alias\phpmyadmin.conf

to following:

<Directory "c:/wamp/apps/phpmyadmin3.4.5/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order Deny,Allow
        Allow from all
</Directory>



回答2:


I changed phpmyadmin.conf and Appache's httpd.conf to

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

and then restarted server. It worked quite well.

Thanks



来源:https://stackoverflow.com/questions/9208472/connect-to-localhost-from-another-computer-in-network

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