WAMP配置 --Version = 2.4.9

README : 记录下安装完WAMP后的配置,省的每次都百度。。。

配置外网访问

打开..\wamp\bin\apache\apache2.4.9\conf\httpd.conf配置文件,
Require localRequire all granted

// Apache ---> http.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.4/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:
    #   AllowOverride FileInfo AuthConfig Limit
    #
    AllowOverride all

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

#   onlineoffline tag - don't remove
    # Require local
    Require all granted


phpmyadmin外网访问

打开..\wamp\alias\phpmyadmin.conf配置文件,
Require localRequire all granted

Alias /phpmyadmin "c:/wamp/apps/phpmyadmin4.1.14/"

# to give access to phpmyadmin from outside 
# replace the lines
#
# Require local
#
# by
#
# Require all granted
#


   Options Indexes FollowSymLinks MultiViews
   AllowOverride all
  
    # Require local
    Require all granted
  
  
    Order Deny,Allow
      Deny from all
      Allow from localhost ::1 127.0.0.1
    
  php_admin_value upload_max_filesize 128M
  php_admin_value post_max_size 128M
  php_admin_value max_execution_time 360
  php_admin_value max_input_time 360

配置MySQL密码

  • WAMP的MySQL登陆密码默认为空,可以通过命令行自行修改:
    use mysql
    update user set password=PASSWORD('123456') where user='root';
    flush privileges; // 使修改生效
    quit
  • 打开..\wamp\apps\phpmyadmin4.1.14\config.inc.php配置文件,修改password即可
    $cfg['Servers'][$i]['password'] = '123456';

你可能感兴趣的:(WAMP配置 --Version = 2.4.9)