This tutorial will walk you every single step of the way through installing and setting up本教程將引導您完成每一個步驟的方式,通過安裝,並設立 WAMP wamp (Windows, Apache, MySQL & PHP). (在Windows , Apache , MySQL和PHP的& ) 。 With WAMP installed, you can run a web server (and things like WordPress, MediaWiki, and與wamp安裝,您可以運行網絡服務器的(事情一樣,在WordPress , mediawiki , Jinzora jinzora ) on your Windows PC. )對您的Windows PC 。
Installing WAMP 安裝wamp
Configure WAMP & MySQL 配置wamp & MySQL的
Install and setup Fake Sendmail 安裝和設置假的Sendmail
- To get started, head over to the若要開始使用,頭向 WAMP download page wamp下載網頁 and save the .exe to your desktop.並保存的。 exe到您的桌面。 Once the download has completed, run the installation file.一旦下載完成後,運行安裝文件。 The first message you’ll see is a warning - if you have an older version of WAMP (1.x) installed, make sure to uninstall it first.第一條消息,您會看到是一個警告-如果你有一個舊版本的w amp( 1 .x)安裝,請務必卸載它第一。 Otherwise click Yes to continue.否則,單擊是繼續。
- Click Next on the initial setup screen.單擊下一步就初始安裝屏幕上。
- Review the License Agreement , select I accept the agreement and then click the Next button.審查許可協議 ,選擇我接受協議,然後單擊下一步按鈕。
- It’sa good idea to leave the default installation directory alone (C:\wamp\) - but if you want to change it, now’s the time.這是個好主意離開的默認安裝目錄單(三: \ wamp \ ) -但是,如果你想要改變它,現在的時間。 Click Next to continue.單擊下一步繼續。
- Decide if you want to have WAMP Quick Launch and/or Desktop icons, and click Next .決定如果您想要有wamp 快速啟動和/或桌面圖標,並單擊下一步 。
- Finally, click Install .最後,單擊安裝 。
- The installation doesn’t take too long.安裝不採取太長。
- Once it has completed, the setup phrase will begin.一旦它已經完成了,安裝詞組將開始。 If you have Firefox set as your default browser, WAMP will ask you if that’s the browser you want to use.如果您有Firefox的設置為默認瀏覽器, wamp會問你如果是這種瀏覽器您要使用的。 Click Yes .單擊是 。
- At this point, if you have a software Firewall installed, it will probably pop up and warn you that Apache wants to accept incoming connections.在這一點上,如果您有一個防火牆軟件安裝,它可能會彈出警告你的Apache要接受傳入的連接。 Depending on your specific Firewall the “button” to click may be different, but it will be something similar to Unblock .根據您的具體防火牆“按鈕”點擊可能會有所不同,但是它會被一些類似要解鎖 。 Do not click “Keep Blocking”. 不按“繼續封鎖” 。
- Leave the SMTP: server set as localhost (more on this later) but do change the email address to yours.離開的SMTP :服務器設置為本地 (了解更多關於本稍後) ,但這樣做的電子郵件地址變更到您的網站。 Click Next .單擊下一步 。
- That’s it - you’re done!這就是它-您就大功告成了! Make sure that there’sa check in the Launch WampServer 2 now box, and click Finish .確保有檢查,在發射wampserver 2 現在框中,並單擊完成 。
Configure WAMP & MySQL 配置wamp & MySQL的
- In your System Tray you should now see a “WAMP” icon.在您的系統托盤您現在應該可以看到一個“ wamp ”圖標。 Click it, and select Put Online ( Note: if it says Put Offline ignore this step and skip to the next one).單擊它,並選擇把在線 ( 注:如果它說, 把離線忽略這一步跳到下一個) 。
- Open your browser (if it isn’t already) and enter the URL打開您的瀏覽器(如果它尚未)和輸入網址 http://localhost . 。
- The WAMP configuration page will load.該wamp配置頁,將負荷。 From here you can access the tools phpMyAdmin, sqlitemanager etc.從這裡您可以存取工具phpmyadmin , sqlitemanager等。
- Now you’ll want to set a MySQL password, because by default, WAMP doesn’t set one.現在您將要設置一個MySQL密碼,因為默認情況下, wamp沒有設置1 。 Select phpMyAdmin from the WAMP configuration page.選擇phpmyadmin從wamp配置頁。 At the bottom of the phpMyAdmin screen you’ll see a message about MySQL running without a root password.在底部的phpmyadmin屏幕,你會看到一條消息,關於MySQL的運行沒有一個root密碼。
- To correct this, select the Privileges link.要更正此,選擇的特權鏈接。 In the User overview section, place a check in the box next to Root - Localhost (see image below) and then click the Edit Privileges button.在用戶的概述部分,設立一個檢查,在旁邊的方塊根-本地(見下面的圖片)然後按一下[編輯特權按鈕。
- Scroll down to the Change password section, and enter your password in both boxes.向下滾動,以更改密碼區段,並輸入您的密碼,在這兩個箱子。 Click Go to save the change.按一下去挽救改變。
- Make sure you get a message saying The password for 'root'@'localhost' was changed successfully .請確認您收到這樣一條信息: 密碼'根' @ '機'已成功更改 。
- Minimize your browser window, and open up Windows Explorer (or whatever file manager you use in Windows).盡量減少您的瀏覽器窗口,並打開了Windows檔案總管(或檔案管理員,無論你在Windows中使用) 。 Navigate to the C:\wamp\apps\phpmyadminx.xx\ folder.瀏覽到C : \ wamp \應用\ phpmyadminx.xx \文件夾中。 Inside that folder, open up config.inc.php - ideally in an HTML or PHP editor, but Notepad will do if you don’t have an html/php/code editor.資料夾內,打開config.inc.php -最好是在一個H TML或P HP語言編輯器,記事本,但將盡如果您沒有一個H TML/ P HP中/代碼編輯器。
- Search for the line $cfg['blowfish_secret'] = ''; - if you’re using notepad it might be easier to just search for the word blowfish搜索該行美元CFG樁[ ' blowfish_secret ' ] = '' ; -如果您使用的記事本,它可能會更容易只要搜尋字河豚
- Change the line $cfg['blowfish_secret'] = ''; to $cfg['blowfish_secret'] = 'mypassphrase'; - where mypassphrase is your own password - not the same one you specified for root in MySQL.行變更為元CFG樁[ ' blowfish_secret ' ] = '' ;元, CFG樁[ ' blowfish_secret ' ] = ' mypassphrase ' ; -在哪裡m ypassphrase是您自己的密碼-並不相同一為您所指定的根在M y SQL。

Note: as you can see from the screenshots above and below, this is much easier to work with in an HTML/PHP editor than it is in Notepad. 注:由於您可以看到從畫面上方和下方,這是非常容易的工作與在一個HTML / PHP的編輯器比,這是在記事本。
- Now search for the phrase ['auth_type'] = 'config'; (again, if you’re using Notepad you might want to just search for auth_type ).現在搜索短語[ ' auth_type ' ] = '配置' ; (再次,如果您使用的記事本,您可能想要只要搜尋auth_type ) 。
- Change config to cookie .改變配置 ,以曲奇 。
- Almost done.幾乎這樣做。 Now search for $cfg['Servers'][$i]['password'] = ''; Replace the = ''; with = 'your-mysql-password'; - where your-mysql-password is the MySQL password you specified back in step #6 of this section.現在可以搜尋美元CFG樁[ '服務器' ] [元一] [ '密碼' ] = '' ;取代= '' ; = '你的MySQL -密碼' ; -在哪裡你的M ySQL密碼是 M ySQL的密碼您所指定的回在步驟# 6本節規定。
- Save the changes you’ve made and exit out of your editor.節省您所進行的變更和退出退出您的編輯器。 Click on the WAMP icon in your System Tray and select Restart All Services .按一下該wamp圖標在系統托盤中,並選擇重新啟動所有的服務 。
- Bring up your browser again, and refresh把您的瀏覽器,並刷新 http://localhost . 。 Select phpmyadmin again.選擇phpmyadmin 。
- This time you’ll be prompted to login.這個時候系統會提示您登錄。 Use root as the Username and enter the password you specified in step #6 as the password. Ignore the error about mcrytp not being loaded - we’ll fix that in a minute.使用根目錄作為用戶名和輸入密碼,在您所指定的步驟# 6作為密碼。 忽略該錯誤約mcrytp沒有加載-我們將修補程序在一分鐘內。
- Return to the Privileges section, and this time place a check next to the user root with the host 127.0.0.1 (see screenshot below) and click the Edit Privileges button.返回到特權節,這時間地點檢查,在明年向用戶根與東道國127.0.0.1 (見下面的截圖) ,並點擊編輯的特權按鈕。
- Set the password to the same one you used for root previously (step #6) and click Go .設定密碼到相同的一所使用的根以前(步驟# 6 ) ,並單擊Go 。 Confirm the password was updated.確認密碼已更新。
- Now select the user root in the production.mysql.com host section, and once again click the Edit Privileges button.現在選擇該用戶深深根植於production.mysql.com主機部分,並再次單擊編輯特權按鈕。
- Again set the password to the same one you’ve previously used for root.再次設定密碼到相同的一您先前用於根。
- And make sure it updates successfully.並確保更新成功。
- Click the WAMP icon in your System Tray, choose PHP from the menu, then PHP extensions , scroll down to php_mcrypt and select it.點擊wamp圖標在系統托盤中,選擇PHP從菜單,然後PHP擴展 ,向下滾動到php_mcrypt和選擇它。
- Refresh phpMyAdmin in your browser, and this time you’ll be prompted to login, but without the mcrypt error.刷新phpmyadmin在您的瀏覽器,這個時候系統會提示您登錄,但沒有 mcrypt錯誤。
- You’ve now set a password for MySQL, making it considerably more secure.您現在設定一個密碼,同時為MySQL開發,使相當多的安全。













Install and setup Fake Sendmail 安裝和設置假的Sendmail
- If you’re running Windows XP, 2000 or NT and have an outgoing (SMTP) mail server already installed on your PC, and can be accessed by localhost, you can skip all the steps in this section - your’e done!如果您正在運行Windows XP , 2000或NT和有外寄( SMTP )郵件服務器上已經安裝了您的電腦,可以訪問localhost ,因此你可以跳過所有本節中的步驟-y our'e做! If you’re using Vista (or don’t have a mail server installed) - keep reading.如果您使用Vista的(或不有一個郵件服務器安裝) -繼續閱讀。
- Because a number of services you may use require a working mail server, we’ll set up Fake Sendmail and use your ISPs outgoing mail server.因為多項服務,您可以使用需要一個工作小組,郵件服務器,我們將成立假Sendmail和使用您的互聯網服務供應商外寄郵件伺服器。 An example of a service that requires working mail is WordPress - if you forget your password and want to reset it, WordPress will email it to you.一個例子,一種服務,需要的工作郵件是在WordPress -如果您忘記了密碼,並要重置,在W ordPress會通過電子郵件發送給您。 Without Fake Sendmail (or a local SMTP server) every time a service tries to send an email, it will fail.無假的Sendmail (或本地SMTP服務器)每一次服務的嘗試發送一封電子郵件,它就會失敗。
- Head over to頭到 http://glob.com.au/sendmail/ and download sendmail.zip .並下載sendmail.zip 。 If your ISP requires that you use SSL, make sure to download sendmail-SSL.zip as well.如果您的ISP ,您需要使用SSL ,請務必下載的Sendmail - ssl.zip以及。 Create the folder(s) C:\usr\lib\ and extract sendmail.zip (and sendmail-SSL.zip if you need it) into that folder.創建文件夾, ( )為C : \ usr \庫\和提取sendmail.zip (和Sendmail - ssl.zip如果您需要它)進入該文件夾中。
- Open up sendmail.ini in Notepad.開放sendmail.ini在記事本。 Scroll down to the smtp_server= section and change it to smtp_server=your.smtp.server , where your.smtp.server is your ISPs outgoing mail (SMTP) server.向下滾動到smtp_server =節和將它更改為smtp_server = your.smtp.server ,其中your.smtp.server是您的互聯網服務供應商發送郵件( SMTP )服務器。 If you’re unsure of your outgoing mail server, you can如果您不確定您的外寄郵件伺服器,您可以 try this list of ISP mail servers試試這個名單的ISP的郵件服務器 - if yours isn’t listed there, check w/ your ISP. -如果您是未列出的有,檢查瓦特/您的I SP。 In the smtp_port= section, make sure it’s set to 25 - assuming your ISP uses port 25 for SMTP (not all do - though mine does).在smtp_port =部分,確保它的設置為25 -假設您的I SP使用的端口2 5用於S MTP(不是所有的事-雖然礦山是否)。
- In the default_domain= section, add your ISPs domain.在default_domain =區段中,添加您的互聯網服務供應商的網域。 For example, if you use Comcast as your ISP, add comcast.net .例如,如果您使用Comcast公司作為您的ISP ,新增comcast.net 。 Because I have service from Telus, my default domain is telus.net (as seen in the screenshot below).因為我服務, TELUS公司,我的默認域是telus.net (看在下面的截圖) 。
- If your SMTP server requires authentication, add your username to the end of the auth_username= field, and your password to the auth_password= field.如果您的伺服器需要驗證,添加您的用戶名到去年底,該auth_username =領域,且您的密碼到auth_password =領域。
Note: you can use the Gmail SMTP server (see 注意:您可以使用Gmail的SMTP伺服器(見 this FAQ此常見問題解答 for details) - assuming you have a Gmail account.詳情) -假設你有一個G mail帳戶。 However, during testing I noticed a considerable delay in receiving mail - up to 7 hours.不過,在測試期間我注意到,相當的延誤接收郵件-最多7小時。 Using my ISPs mail server settings there was no delay at all.用我的互聯網服務供應商,郵件服務器設置有沒有延誤,在所有。
- Save your changes to the file (sendmail.ini) and exit Notepad.保存您的文件進行更改( sendmail.ini )和退出記事本。 Now click the WAMP icon in your System Tray, select PHP and then click php.ini .現在點擊wamp圖標在系統托盤中,選擇PHP和然後單擊php.ini的影響 。
- Scroll down to the [ mail function ] section.向下滾動到[電子郵件功能]節。 Comment out each of the For Win 32 lines by adding a semicolon ( ; ) in front of each one (see screenshot below). Uncomment the line sendmail_path = by removing the semicolon ( ; ) in front of it.評論指出的每一項為贏得32線加入一個分號( ; )在前面的每一個(見下面的截圖) 。 註釋線sendmail_path =刪除分號( ; )在前面。 Add "/usr/lib/sendmail.exe -t" to the end of the line, so that it reads: sendmail_path = "/usr/lib/sendmail.exe -t" (again, see the screenshot below).加上“在/ usr /庫/ sendmail.exe -噸”到去年底的路線,使其內容如下: sendmail_path = “是/ usr / lib中/ sendmail.exe -噸” (再次,見下面的截圖) 。
- Save php.ini and exit out of Notepad (or whatever editor you used to edit php.ini).保存php.ini並退出走出記事本(或任何編輯器,您用於編輯的php.ini ) 。 Click on the WAMP icon in your System Tray and select Restart All Services .按一下該wamp圖標在系統托盤中,並選擇重新啟動所有的服務 。
- Now any time one of your web services needs to send an email…現在,任何時間,您的其中一個Web服務的需要,發送電子郵件…
- it will go through!它將通過!
- That’s it - you’re done!這就是它-您就大功告成了! You now have a fully functional Apache, MySQL and PHP system on your PC.你現在有一個全功能的Apache , MySQL和PHP的系統,在您的PC上。














































{ 4 comments… read them below or ( 4評論…閱讀他們或低於 add one新增1 } )
This indeed made a great contribution for me as a novice user of the wamp server.這的確作出了巨大的貢獻,我作為一個初級用戶的wamp服務器。 Thank you very much非常感謝
Thank you very much!非常感謝! Out of all the tutorials I found out there, this was by far the best AND easiest!退出所有教程我發現有,這是迄今為止最好的和最容易的! Kudos and Thanks!聲望和感謝!
XAMPP is much easier to be honest. xampp要容易得多誠實。
I’d look into it.我要看看它。
Really great help dear!真的有很大的幫助親愛的!
Thanks a lot…!!!!!!!!感謝很多… !!!!!!!!
Leave a Comment留下意見