欢迎访问 生活随笔!

生活随笔

当前位置: 首页 >

wamp2.2-64位 localhost和localhost/phpmyadmin不能访问问题解决

发布时间:2024/8/23 38 豆豆
生活随笔 收集整理的这篇文章主要介绍了 wamp2.2-64位 localhost和localhost/phpmyadmin不能访问问题解决 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

1、在httpd.conf配置文件中找到

<Directory "d:/wamp/www/">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride all

    #
    # Controls who can get stuff from this server.
    #

#   onlineoffline tag - don't remove
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1

</Directory>

将红色字体改成 Allow from 127.0.0.1 ::1  或者  改成 Allow from all 

2、再打开wamp/alias/phpmyadmin.conf

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

将红色字体改成Allow from 127.0.0.1 ::1  或者  改成 Allow from all 

 

 

解释:

Deny from all 是禁止所有访问,但是允许 127.0.0.1 访问

 

修改为 Allow from all  允许所有访问

 

转载于:https://www.cnblogs.com/tsunlight/p/localhost%e4%b8%8d%e8%83%bd%e8%ae%bf%e9%97%ae.html

总结

以上是生活随笔为你收集整理的wamp2.2-64位 localhost和localhost/phpmyadmin不能访问问题解决的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。