赢友网络

WampServer配置说明

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

 

 

1、修改默认端口

  1)打开文件:C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf

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

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

 

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

      1)打开文件:C:\wamp\wampmanager.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:\wamp\scripts\config.inc.php

  2)修改网站目录

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

  3)打开文件:C:\wamp\bin\apache\apache2.4.9\conf\httpd.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:\wamp\apps\phpmyadmin4.1.14\config.inc.php

  6)修改文件:

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

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

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

  

 

posted @ 2015-10-19 11:41  新生帝  阅读(505)  评论(0编辑  收藏  举报
赢友网络