windows 安裝 wamp 小結 修改預設連接埠 修改預設目錄

來源:互聯網
上載者:User

標籤:

普及一下,wamp為windows下一鍵安裝部署的php開發環境,包含(mysql apache php phpMyAdmin.

此貼參考了:http://blog.csdn.net/jj455909186/article/details/39253923

==== 原帖內容 start ====

安裝目錄 g:/wamp/www

現要修改為 d:/wamp/www


首先找到G:\wamp\bin\apache\apache2.4.9\conf\httpd.conf

大約在230行修改為 DocumentRoot "d:/wamp/www/"

大約在252行修改為  <Directory "d:/wamp/www/">


找到G:\wamp\www\index.php

大約在40行修改為

    $server_dir = "d:/wamp/";
    //Fonctionne à condition d‘avoir ServerSignature On et ServerTokens Full dans httpd.conf
    $server_software = $_SERVER[‘SERVER_SOFTWARE‘];
    $wampConfFile = $server_dir.‘wampmanager.conf‘;
    //chemin jusqu‘aux fichiers alias
    $aliasDir = $server_dir.‘alias/‘;


找到G:\wamp\wampmanager.ini

大約在294行修改為

    Type: item; Caption: "www ??"; Action: shellexecute; FileName: "d:/wamp/www"; Glyph: 2


找到G:\wamp\wampmanager.tpl

大約在138行修改為

    Type: item; Caption: "${w_wwwDirectory}"; Action: shellexecute; FileName: "d:/wamp/www"; Glyph: 2


附:修改mysql的data目錄

G:\wamp\bin\mysql\mysql5.6.17\my.ini

大約在38行  改為 datadir=d:/wamp/bin/mysql/mysql5.6.17/data


最後儲存,重新啟動相關服務就可以了

==== 原帖內容 end ====

補充:

1.修改預設連接埠方式 80 -> 8088

    找到G:\wamp\bin\apache\apache2.4.9\conf\httpd.conf檔案(注意:不要直接從右下角的wamp菜單中去開啟這個檔案,開啟之後是設定不了的,知道為什麼的可以幫忙回帖補充)

    62行(或者搜尋80) 將Listen 0.0.0.0:80 修改為Listen 0.0.0.0:8088

    63行(或者搜尋80) 將Listen [::0]:80 修改為Listen [::0]:8088

2 .在安裝時彈出的填寫郵箱與stmp資訊的對話方塊,如果你不需要使用php原生的發送email方式,可以保持預設.(翻譯就是這樣說的)

3.wamp2.5安裝包,http://yunpan.cn/cmYH9T5SmvPB4  訪問密碼 67c9

4.如果提示msvcr110.dll找不到,請先下載 http://www.microsoft.com/en-us/download/details.aspx?id=30679

      32位系統下載VSU_4\vcredist_x86.exe 雲端硬碟地址:http://yunpan.cn/cmYLVS2CGFwZL  訪問密碼 1cb3

        64位系統下載 VSU_4\vcredist_x64.exe

 

 

windows 安裝 wamp 小結 修改預設連接埠 修改預設目錄

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.