zoukankan      html  css  js  c++  java
  • WampServer配置说明

    注意:所有的修改操作都要重启WampServer服务器,部分需要重启WampServer软件

    1、修改默认端口

      1)打开文件:C:wampinapacheapache2.4.9confhttpd.conf

      2)修改默认端口,并重新重启服务。

    #Listen 12.34.56.78:8088
    Listen 0.0.0.0:8088
    Listen [::0]:8088
    

    2、修改WampServer右下角服务器的默认链接

          1)打开文件:C:wampwampmanager.tpl

          2)修改默认端口

    Type: item; Caption: "${w_phpmyadmin}"; Action: run; FileName: "${c_navigator}"; Parameters: "http://localhost:8088/phpmyadmin/"; Glyph: 5
    Type: item; Caption: "${w_wwwDirectory}"; Action: shellexecute; FileName: "${wwwDir}"; Glyph: 2
    Type: submenu; Caption: "Apache"; SubMenu: apacheMenu; Glyph: 3
    Type: submenu; Caption: "PHP"; SubMenu: phpMenu; Glyph: 3
    Type: submenu; Caption: "MySQL"; SubMenu: mysqlMenu; Glyph: 3
    Type: separator; Caption: "Debug"
    ;Type: item; Caption: "Client XDebug"; Glyph: 6; Action: run; FileName: "${c_installDir}/tools/xdc/xdc.exe"
    Type: item; Caption: "${c_webgrind}"; Action: run; FileName: "${c_navigator}"; Parameters: "http://localhost:8088/webgrind/"; Glyph: 5
    Type: separator; Caption: "Quick Admin"
    ;Type: servicesubmenu; Caption: "${w_apache}"; Service: ${c_apacheService}; SubMenu: apache
    ;Type: servicesubmenu; Caption: "${w_mysql}"; Service: ${c_mysqlService}; SubMenu: MySql
    Type: item; Caption: "${w_startServices}"; Action: multi; Actions: StartAll
    Type: item; Caption: "${w_stopServices}"; Action: multi; Actions: StopAll
    Type: item; Caption: "${w_restartServices}"; Action: multi; Actions: RestartAll
    Type: separator; 
    Type: item; Caption: "${w_putOnline}"; Action: multi; Actions: onlineoffline
    ;WAMPMENULEFTEND
    

      3)重启WampServer软件

    3、修改WampServer网站根目录

      1)打开文件:C:wampscriptsconfig.inc.php

      2)修改网站目录

    //$wwwDir = $c_installDir.'/www';
    $wwwDir = 'D:/PHP/Webs';
    

      3)打开文件:C:wampinapacheapache2.4.9confhttpd.conf

    #DocumentRoot "c:/wamp/www/"
    DocumentRoot "D:/PHP/Webs/"
    
    #<Directory "c:/wamp/www/">
    <Directory "D:/PHP/Webs/">
    

      

    4、修改WampServer PhpMyadmin密码

      1)打开PhpMyadmin页面

      2)找到用户菜单

      3)选择最后一个root项,编辑权限

      4)输入你要修改的密码。

      5)打开文件:C:wampappsphpmyadmin4.1.14config.inc.php

      6)修改文件:

    $cfg['Servers'][$i]['password'] = 'q1w2e3';
    

      7)如果想启用登录窗口,修改代码:,原本是cookie注释的。

    $cfg['Servers'][$i]['auth_type'] = 'cookie';
    //$cfg['Servers'][$i]['auth_type'] = 'config';
    

      

  • 相关阅读:
    在wepy里面使用redux
    使用es6的蹦床函数解决递归造成的堆栈溢出
    解决layui下拉选择框只能选择不能手动输入文字
    POJ 2230 Watchcow (欧拉回路)
    POJ 2337 Catenyms (欧拉回路)
    POJ 2513 Colored Sticks (欧拉回路 + 字典树 +并查集)
    HDU 3018 Ant Trip (欧拉回路)
    HDU 1023 Train Problem II (大数卡特兰数)
    HDU 2067 小兔的棋盘 (卡特兰数)
    HDU 3584 Cube (三维数状数组)
  • 原文地址:https://www.cnblogs.com/wln3344/p/4891438.html
Copyright © 2011-2022 走看看