zoukankan      html  css  js  c++  java
  • Wamp 安装与配置

    1. WAMP 介绍

    • W指windows运行环境。
    • A指Apache服务器。
    • M指Mysql数据库等...
    • P指PHP或Python服务端语言及环境。

    2. 下载 Wamp 及 Visual C++ Redistributable (vcredist_x64/86.exe),wamp依赖于Visual C++ Redistributable环境。

    3. 配置Apache

    • 修改./wamp/bin/apache/conf/httpd.conf,修改ServerName。

    4. 添加alias,方法一

    • 左键点击wamp --> Apache --> alias 目录。
    • 弹出终端窗口,先输入工程名称,回车。
    • 再输入,工程源代码目录地址,如:D:/workspace/wordpress (PS:"/" 反斜杠)

    PS:

    1. 工程目录放于其它位置(不在wamp目录中),wampserver提示You don't have permission to access /wordpress/ on this server.  

    1 Alias /wordpress/ "D:/workspace/wordpress/" 
    2 
    3 <Directory "D:/workspace/wordpress/">
    4     Options Indexes FollowSymLinks MultiViews
    5     AllowOverride all
    6         Order allow,deny
    7     Allow from all
    8 </Directory>

    与phpsysinfo.conf文件对比

     1 Alias /phpsysinfo "D:/wamp/apps/phpsysinfo3.1.12/" 
     2 
     3 # to give access to phpmyadmin from outside 
     4 # replace the lines
     5 #
     6 # Require local
     7 #
     8 # by
     9 #
    10 # Require all granted
    11 #
    12 
    13 <Directory "D:/wamp/apps/phpsysinfo3.1.12/">
    14     Options Indexes FollowSymLinks
    15     AllowOverride all
    16   <IfDefine APACHE24>
    17     Require local
    18   </IfDefine>
    19   <IfDefine !APACHE24>
    20     Order Deny,Allow
    21       Deny from all
    22       Allow from localhost ::1 127.0.0.1
    23     </IfDefine>
    24 </Directory>

    发现wordpress.conf Directory标签中少了 Require local 语句。

    添加并重启Apache,即可。

    2. phpMyAdmin 修改数据库密码

    在/wamp/apps/phpmyadmin4.1.14/config.inc文件中,如下修改

    1 /* Authentication type */
    2 $cfg['Servers'][$i]['verbose'] = 'mysql wampserver';
    3 //$cfg['Servers'][$i]['auth_type'] = 'cookie';
    4 $cfg['Servers'][$i]['auth_type'] = 'config';
    5 $cfg['Servers'][$i]['user'] = 'root';
    6 $cfg['Servers'][$i]['password'] = '123654';
  • 相关阅读:
    Hibernate关于字段的属性设计
    Hibernate之增删查改常见错误
    Hibernate之实体类设计基本步骤
    Github开源之旅第二季-MarkDown
    8.Git命令(上)
    9.Git命令(下)
    7.Git Bash操作的四个坑(基本LINUX操作)
    Webserver-HTTP项目(深入理解HTTP协议)
    JAVA入门到精通-第94讲-山寨QQ项目8-好友在线提示
    JAVA入门到精通-第93讲-山寨QQ项目7-好友在线提示
  • 原文地址:https://www.cnblogs.com/naray/p/4416125.html
Copyright © 2011-2022 走看看