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网站根目录
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/">
时间: 2024-10-14 06:24:42