问题
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