• 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';
  • 相关阅读:
    状压dp学习笔记
    dbcc log(转)
    日志分析 操作(转)
    Sql server 2005系统表详细说明
    c#读取并分析sqlServer据库日志(转)
    [POJ]1915 Knight Moves
    [JOY]1143 飘飘乎居士的约会
    [POJ]1164 The Castle
    win7注册ocx时出现对DllRegisterServer的调用失败,错误代码为0x80040200解决方案
    注册DLL、OCX的方法
  • 原文地址:https://www.cnblogs.com/naray/p/4416125.html
Copyright © 2020-2023  润新知