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';
中山赢友网络科技有限公司(http://www.winu.net/)承接IOS、Android、Window Phone 8+、Window 10 App应用开发,IOS、Android、Window Phone 8+游戏开发,.NET/PHP软件系统开发,HTML5网站、游戏、微官网开发。欢迎致电:0760-88809987、18676265646 陈先生。