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

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


    #
    # 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

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

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


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

将红色字体改成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不能访问问题解决)