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留下意见