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';
    

      

  • 相关阅读:
    宝塔面板的数据库使用
    Spring MVC入门
    从分式第n项到线性递推——bostan-mori 算法的扩展应用
    计算几何专题训练
    博客整理
    wpf ScrollViewer自动滚到最上
    word2Vec笔记2021
    好用工具备份
    Samtools pick up seq
    Ryzen核显需要扩大显存吗?
  • 原文地址:https://www.cnblogs.com/wln3344/p/4891438.html
Copyright © 2011-2022 走看看