本地网站环境搭建教程_第1页
本地网站环境搭建教程_第2页
本地网站环境搭建教程_第3页
本地网站环境搭建教程_第4页
本地网站环境搭建教程_第5页
已阅读5页,还剩36页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Word文档本地网站环境搭建(IIS7.0+php5+MySQL5.0)本地安装IIS7.0(基于windows7系统)1.打开电脑控制面板”,找到程序”,点击打开或关闭windows功能“计其机控制面板帮助和支持防.宙阅 视恿本比打力更被您的计算机段直井二之,苫PHPMYSWindows lijtg。|Word文档打开或关闭Windows功能若要打开一科功能.请选择其品园S.若要关闭一种功能,请清除其S庭怅埴克的框表示仪打开诙功能的TP分.Indexing£日rviceMInternetExplorer11InternetInformationServi日谒Internet值3Ej

2、FTP展嘉磊引口Web管遑二M用匚1)万雏网服务点开Internet信息p寥产蟹邃媚b管理里面的选项上谒谒赢谒口宜n囹画囹Microsoft.NETFramework3.5.1MicrosoftMessageQueue(MSUQ)原务善N用暗RIP侦听器TabletPC组件TelnetE蹈器fWindows功能打开或关闭Windows功能®若要打开一种功能.请i碎其豆选框.若要关团一种功能,请清除其翱他.埴充的梃表示仗打开该功靛的一部分。Web管理M用US6苣是兼容性JIS6WM兼容性ZIIS6竺理拄苣恪211由6期本工具7us五精率ansWns管理展务M1IS磔旺本和TMns管理控

3、制台臣IMicrosoft.NETFramework3.5,1pjWindows功能打开或关闭Windows功能m要打开一种功能,清选修其复选框,若要关闭一种功能,请清喙其复选乱填充的相H7万维网洽资a01安全性QV常见H17P功能尸TTD晨岂呈全部打上勾安装花Web服第号内容加HTML如图堂支用的支持.k.WebDAV发布V静态内容k目录泼览二k也有酸能动态内容,无缩<静态内容压缩日M.应用程序开发功能国上团*国二如,NET扩展性ASPASP.NETCG1Word文档7ISAPI扩展Misapi鬣选器也服务器支包含.二H运行状况和渗断ZHTTP日志MODBC日志记录01跟踪0清求监视器

4、k日志工具画上自定义日志i+rMicrosoftMessageQueue陨符器aniNFS取第安装完之后,回到控制面板五百方it莫坦,a用户假户和家庭安全£.i&SQ4tMM为展打用户旺季长野J网络和Internet直看网环标志都任后襄件和声音苜容总酊生7团机新物i£网版的.稼国用博大.安置程序宁"第5_外观和个性化*«L.更皿EF更五地立时M注空导用分理时钟、语言和区域PKWfiSEBrlEA更就显示诺三jfk轻榜访问Hy店用WinJet学改的,百tt4tWS!lE拉中虎三贡谢和安亲 阿珞司IjiEermet明胸声告程序用户昧户和题定金 外加第

5、M1也化Birta再育的区域 发检注阿可 neem- A,,鸟&1晒风确画s至V-,力慢亍咕问,可将书三立主的书照栏a.卜里程至事卜后瓢町处,力撰作中心检量计耳他我志并找夷间工整亚百用户廿星初即席正计司机三降也瞬香将计尊施±意田1?岸的时间点Windows防火骑啜苴时*183WindowsRfiStfl*系城E若二制M的大小隧屋状氏耳幡百印indo*K卷田/兑许证厚小问菅斯敬十苴叽的昌海皆没后露.0.WindowsUpdate<1日习五馨用刍幼更新脸亘更新曼若已安硫更界W电源选项里汽电池没宜啜,物1肛看费由后里巴电弼翔的由更茂计算值矣时可由备伤和还原:步击手!S3的计丽

6、从占I晒跤件BitLocker施动器加定曾TT工具B制金内I湘明西分区等任若哥生日忑审廿限任更FhshPlayer(32te)11到这里为止,IIS7.恢装成功测试:在浏览器里打开网站里面的默认网站当在浏览器里面由现IIS7的图片,说明我们IIS安装成功!BienvenueTervetuloa敬迎vplkommenWelcomeWiflkommenBenvenutoWelkomIIS7internet information services'Nnn comVLLKOMLN欢迎WitamyValkommenHo$ Geldin法直空音u匚卜二、PHP5.0环境配置解压我们的软件包,复制

7、php-5.2.6-win32至UD盘php-52.6-WinJ2'予双三层工口1*1/1917:1B立怦央垂粗一包含事碑二醉一#建立I峡H5QSSKQ2一K近巧间笛依目B叱一叁片诉i曲返土下蛀Jl百条1-二;'j!N7(Ci)i_i工作叫JiSCit间曲拄性附1立他,好好学习(HQ*ta网港22打开文件夹*MT1BmLit的砥粒S良片0迅J«:,喇&WW7(COj工传信2jte«曲JMKtfffH1KIQNEtwib*nyK|ldlFce«se阕Eqlid.腐I腐IpbpSxpHc,pFpSapache_hoDte£ht2.dl

8、l&的p.hp,口的口hgipgiwpiphpSapache2_2cW如日kHUnewsphpSIEhe2_2_Ster_dl邕snjpshccWwlbibdIIphpEacheijfilw*.di,iptfiSraap.工IphpSnupidllibwjfjf-dilibmciEHbrnhaiJi,dlldllLJTfiKPM«;F|翌天M脸支过能留取源鼻打开方宜时ph吟UlwaEditeh争添MS阳I悦忤0L-3BlUfl,ph|hrflr,,(T)娄星财的酷t(¥l:ft谥题W国习耐4内畅丽国富弁蛉函电疗2nnJ PhP -记事本in i 回 ii-i文阐F)

9、编专旧is式gj查看(S-部血记;TherootofthePHPpages,usedonlyifnonenipty-;ifPHPwasnotcompiledwithFORCE_RED1RECT,youSHOULDsetdoc_roat;ifyouarerunningphpasaCGIunderanymebserver(.o-thcrthanIIS);seedlocwDentationforsecurityissues.Thealternateistousethe;cgi.forcc_rcdirectconfigiurationbelowdoc_root=;The directory under

10、 which PHP opens the script using /username used only ;if nonempty.user dir;Directory in extension dir修改或pp文件夹下面ext文件夹的路径1 '11''(nodules) residE-which the loadable eitensions; Whether or not to enable the dl() function-; properly in mul ti tJireaded scrversp ; di sabled on them.enable_dl

11、 = OnSUCh £15The dl0 function does NOT work IIS or ZcuSp mid is nutomatically; cgi. for ce_T e di rec t is necessary to ; most web servers- Left undefined步 ;turn it off here AT YOUR ONN RISK ;*Ydu CAN safely turn this off for;cgi. force_tedirect = 1provideEecurity running PHP as: a CGI uudeTPHP

12、 turns this on by default. You canIIS,in fact, you MUST. *; if cgi.nph is enabled;every request.;cel, nph = 1cgito always sent Status : 200 with; if cgis force_redirect; (iPLanet) web serversj; will look for to know; cause security isuesjis turned oniyou HAY needandyou are not running under Apache o

13、r Netscapeto set an environment variable name that PHPit is OK to continue execution. Setting this variabie MAY KNOW WHAT YOU ARE DOING FIRST.cgi . redirect statu5 env文件(F)的楣式gj查看m犁即川);TherootofthePHPpages,usedonlyifnonenipty-;ifPHPwasnotcompiledwithFORCE_RED1RECT,youSHOULDsetdoc_roat;ifyouarerunnin

14、gphpasaCGIunderanymcbserver(.o-thcrthanIIS);seedlocwDcntationforsecurityissues.Thealternateistousethe;cgi.forcc_rcdirectconfigiurationbelowdocroo't=;ThedirectoryunderwhichPHPopensthescriptusing/Usernameusedonly;ifnonempty.user_dir=;Directoryineitensions(modules)resideestension_dir*"D:phpext

15、";Whetherornottoenablethedl()function-Thedl()functiondoesNOTwork;properlyinmultithireadedscrverspsuchasIISorZeuspmidisnutomatically;disabledonthem.enable_dl=On;cgi.force_TedirectisnecessarytoprovideEecurityrunningPHPas:aCGIun-der;mostwebservers-Leftundefined步PHPturnsthisanbydefault,Toucan;turni

16、toffhereATYOURONNRISK;ouCANsafelyturnthisoffforIISinfactjyouMUST.*;cgi.force_tedirect=1;ifcgi.nphisenableditwillforcecgitoalwayssentStatus:200with;everyrequest.;cel,nph=1;ifcgisforce_redirectisturnedoniandyouarenotrunning;underApacheorNetscape;(iPLanet)webserversjyouBAYneedtosetanenvirommentvariable

17、namethatPHP;willlookfortoknowitisOKtocontinueezecutian.SettingthisvariableMAY;causesecurityisuesjKNONWHATYOUAREDOINGFIRST.;cgi.i,edirectstatusenv=;Word文档二I php -记事本文件(H -旧 楣式(理 查看M 梨勘单); extension folders as well as the separate PECL DLL download (PHP 5).; Be sure to appropriately set the eztension_

18、dir directive.;ext ensi on=php_bz2. dl1;eitcnsi on=php_curl. dl1;ezt cnsi 口nFphp_dbai. <111;eit ensi un=>hp_dbaise. dl l;ext ension-Dhp_exif- dll;st msg nn=f qi 1;ex* ensi cm=也 dl 1;ezt ensi on=php_Eettest-;ext ensi on=php_ginpx dl 1;eztension_php_ifs. dl1;extensi on-php_imap. dl1;ezt ertsi on

19、=php_interbase. dl 1;czt ensi on=php ldap. dl1;eitension-phpmcryp t-dl1去掉这四个前面的分号;extension-php_nhashr dl1 ;eit ensi Qji=php_jniroe_iiagic& dll ;eitension=php_minga dll;eztension=php_msql. dl1/;eztension=php_mssql. dll Teztension=hp_iiiysql. dll ;eztensi on=php_mysqli. dll ;ezt ensi on=php_oci 8

20、. dl 1 ;eztension=phpopens a1, dl1 :eitension=phpj>do. dl1:extension-php_pdo_firebird, dll ;eitension=php_pdoinssql- dll ;eit ensi op=php_pdo_inysql, dl 1 ;eitension=php_pdo_aci- dill ;eztension=php_pdo_oci8. dll ;extension=php_pdo_odbc. dll ;eztensi on-php pdo pgsql. dl1保存复制我们修改好了的php.ini文件到C盘wi

21、ndows文件夹下面然后在复制D:卜面的所有文件到C盘下面。最后:打开我们的iis信息管理Word文档Word文档添加模决映后国汉清求路径(P):*php丁'二|日午四湛:,二七匚n模块(M:FastCgiModule可防文仲可选卜日添加嘎决肛Oi要为此可执行文件创建Fd&tCGI应用程序吗?单击"型将此m前倒FstCCI集合中r以及允许此可执行文件作为FastCGl应用程序运行.到此,php5.0环境配置完成。三、MYSQL数据库安装打开我们的安装包,点击安装my£ql-5.0.27-win32于访问,可将书签直接放在书签栏中,)件包件包kmysq1-5.

22、0.27*Win32mysql-5.0.27*Win32k(H漏埔E)查看(V)TMC0智联H)织,包含到库中,共享,新建文件夹riKSer/口IM桌面,加P.最近访问乾位置L亨MySQLServer5.0-SetupWizardWelcometotheSetupWizardforMySQLServer5.0TheSetupWizardwillirratallMySQLServer5.0release5.0.27onyourcomputer.TocontinoejdckNext,WARNING;Thisprorainisprotectedbycopyrightlaw.INext>ICan

23、cel点MySQLServer5.0-SetupWizardSetupTypeChoosethesetuptypethatbestsuitsyocrneeds.Pleaseselectasetuptype.1TypicalCommonprogramfeatureswillbeinstBlIed,Recomnencledforgeneraluse.Complete ,£fAllprogramfeatureswillbeinstalled.Requiresthemostdiskspace.)dCustomChoosewhichprogramfeaturesyouwantinstalled

24、andft+ieretheywillbeinstalted,Recooirrieridedforadvancedusers.<BackNext>Cancel虑MySQLServer5.0-SetupWizardCustomSetupSelectUheprogramfeaturesyouwantinstalled.Clickt>naniconinthelistbelowtochangehowafeatureisinstalled,*市FF-QI-乂MySQLServerCl忙ntProgramsMySQLInstenceM3口四申DocunnentatioriFeatureDe

25、5criDtionComponentsdevelopersDeveloperCompcments*叫ThisfeaturewillinstalledtorunfromrKtw。匕当目Thisfeature,andall&ubfeaturewillbeinstalledtoruntromthenetwork.Installtc怔)Thisfeaturew;lIbein吐311adwhenrequired.XThisfeaturewillnotbeavail3bIe,j§lMySQLServer5.0-SetupWizardCustomSetupSelecttheprogramf

26、eaturesyouwantinstalled.Clickorrankoninthelistbelowtochangehowafeatureisinstiled.-iji*国.MySQLServerClientProgramsMySQLInstanceManagerDocumentationDeveloperComponentEInstalltoC:'ProgramFites仅鸵)'MySQLWySQLSer'er5.0'LFeatureDescriptionComponentsusedbydevdopers,ThisfeaturerequiresOKEonyo

27、urharddrive.Ithas3of3subfeaturesseected.Thesubfeaturesrequire27MBonyourharddrive.Change.Word文档jS MySQL Server 5.0 - Setup WizardWizard CompletedSetup has finished installing MySQL Server 5.0. Cick Finish to exit the wizard.J Configure the MySQL Server nowUse this option to generate an optimized MySQ

28、L conftg file setup a Windows service running on a dedicated port and to set the password ibr the root account.< Bao.Finish匚,.匚口MySQL.comSign-UpLoginorcreateanewM¥5Q_,8fnaccount.Pleaseloginorselecttheoptiontocreateanewaccount.CreateanewfreeMySQLcomaccountIfyoudonotyethaveaMySQL.comaccount,se

29、lectthsoptionandcompletEthefbllo'ingthreesteps.LogintoMySQLxonnSectthisoptionifyoualreadyhaveaMySQL,comaccount,Pleasespedfyyourk)gininformationbelow.Emailaddress:Password:oSkip£ign-UpMySQLServerInstanceConfigurationWizardWekometotheMySQLServerInstanceConHgurationWizardL0.8TheConfigurationWi

30、zardwllallowyoutoconfiguretheMySQLServer5.0serverinstance,ToContinue,dickNext.Next>CancelMySQLServerInstanceConfigurationWizardMySQLServerInstanceConfigurationConfiguretheMySQLSen,-er5.0sen,jerinstance.Pleaseselectaconfigurationtype.33oDetailedConfigurationChoosethisconfigurationWpetocreatetheopt

31、imalserversetupforthismadiinenStandardConfigurationUsethisonlyonmachines出atdonotalreadyhaveaMySQLserverinstallation.Thiswilluseageneralpurposeconfigurationfortheserverthatcanbetunedmanually.<Ba*Next>MySQLServerInstanceConfiguratiorWizard一k-aMySQLServerInstanceConfigurationConfiguretheMySQLServ

32、er5,0serverinstance.Pleaseselecta5ervertype.Thiswillinfluencememory,dtskandCPUussge.QDeveloperMachine1.Thistsadevelopmentmadiinerandmanyotherapplicationswilberunonit.MySQLSer,/ershould:onlyuseaminimalamountofmemoryHSemurMachineSeveralserverapplicationswilberunningonthismachineChoosethisoptionforv-,e

33、b/applicationservers.MySQLwillhavemediunnmEmoryusage.DedicatedMySQLServerMachineThismachineisdedicatedtoruntheMySQLDatabaseServerNootherservers,suchasaweborrnaiserver,willberun,MySQLwilutilizeuptoallavailablememory.<BadeNext>MySQLServerInstanceConfiguraticnVizard一MySQLServerInstanceConfigurati

34、onConfiguretheMySQLSender5.0senjerinstance.Pleaseselectthedatabaseusage.口MultifunctionalDatat>a»eGeneralpurposedatsbases.ThiswiloptmizetheserverfbrtineuseofthefesttransactionalImoDBstorageengineandthehighspeedMylSAMst)or*geengine.TransactionalDatabaseOnyOptimizedfurapplicationserversandtrans

35、actionalwebapplications.ThiswillmakeInnoDBttiemamstorageengine.NotethattheiMylSAMenginecanstilbeused.Non-TransactionalDatabaseOnlvISuitedforsimplewebapplications,monitoringorloggingapplkations1/Ja$wellasanalvsisprograms.Onlyttienon*transactionalMylSAMstorageenginewilbeactivoted.<BadNext>ICance

36、l._MySQLServerInstanceConfigurationWizardMySQLServerInstaneeConfigurationCanfiguretheMySQLServer5,0serverinstance.PleaseselectthedrivefixtheInnoDBdatafilurifyoudonotwanttousetheckfauhsettings.InnoDBTablespaceSettingsPleasechoosethedtiveandcfirectorywheretheInnoDBtable&paceshouldbeplaced.仁Install

37、ationPathDriveInfoWIN7MTFSVolumeName;FieSystefin:Please set the approximate number of concurrenct connectons to the server,CancelNext >MySQL Server Instance Configuration WizardMySQL Server Instance ConfigurationConfigure the MySQL Server 5.0 server inlsnce.| 24<8 GB Dtskspn Uwe W.4 GB Fr«

38、; DskspanWord文档DecisionSupport(E>SS)/OLAPOnline Transaction PrcMzessing (OLTP), . Choose this option for highly concurrent applications that may haveat any one time up to 500 active connectioris such as heavily loaded web servers.Q Manual Setting-Please enter the approxiCcurcurrent connechons:Can

39、celSelectthisoptonfordatabase6即lie占tionsthatwillnotrequireahighnumberofconcurrentconnectons.Anumberof20connectionswillbe35EumEd.MySQL Server Instance Configuration WizardMySQLServerInstanceConfigurationWizardHySQLServerInstanceConfigurationConfiguretheMySQLSerer5.0sen,jerinstance.Pleaseselectthedefa

40、ultcharacter5et,QStandardCharacterSetMakesLatin1thedefaultcharset.ThischaractersetissuitedfarEnglishandotherWestEuropeanlanguages,BestSupportForMuHzilingualt5mMakeIJTF3thedefaultcharacterset.This话therecommendedcharactersetiwstoringtextinmanydifferentlanguages.Character Set:latnlManualSelectedDefault

41、CharacterSet/CollationPleasespedfythecharactersettous巳<日日改Next>|CancellMySQLServerInstanceConfigurationWizardMySQLServerInstanceConfiguretkxiConfiguretheMySQLServer5,0serverinstance.PleasesettheWindciwsoptons.InstaIIAsWindowsServiceSerwte Name:MySQLThiststherecommendedwaytoruntheMySQLserveranW

42、indows.VLaunchtheMySQLServerautomaticalyIncludeBinDirectoryinWindowsPATHChedithisoptiontoindudethedirectorycontainingttieserver/dentexecutablesintheWindowsPATHvariablesotheycanbecalledfromthecommandline.< BackNext >CancelMySQLServerInstanceConfigurationWizardMySQL Server Instance Configuration

43、Configure the MySQL Senj&r 5.0 sen er instance.Please set the SECunty aptons.此处为数据库密码,13vr Modify Security Settings数据库名为rootNew root password:Confirm:iter the root issword.type the password.此处都打上勾anymous AccountiablerootaccessfromremotenwchhestfhThisoptonnilaeateananonymousaccountonthisserver.Pl

44、easeV*rotethatthiscanleadtoaninsecuresystefn.MySQLServerInstanceConfigurationWizardMySQLServerInstanceConfiguretionConfiguretheMySQLServer5.0serverinstanceReadytoexecute.(_jPrepareconfiguration(JWriteconfigurationfile。StartserviceOApplysecuritysettingsPleasepressExecutetostarttheconfiguration.Fi

45、3; f f/5QL'.MySQLSv&勺 Prepare corrfiguratjon Write configuration file :c?时,f Start serviceM Apply securih' settingsMySQLServerInstanceConfigurationWizardMySQLServerInstanceConfigurationConfiguretheMySQLServer5.0serverinstance.Processingconfiguration.到此安装成功Configurationfilecreated.Windows

46、serviceMySQLigWiled.Servicestartedsuccessfullv.Securitysettingsapplied.PressFinishtoclosetheWizard.现在我们安装一个管理数据库的软件,有phpadmin,NavicatMySQLFront,在这里我们使用NavicatMySQLFront来管理我们的数据库。'NadcalMHQLTrDfil为屿访问,可将书论亘主或在书雉早.卜承抡就'士曰f工tg就件电INavicfltMQLFrDnt文件用iafifE】asm工成nBf®i(H)鱼uss法*下登夏当二最曰目的位置慎由“此

47、注解imytqLcs二uH*ftiii迅留下疵J台京:计尊孤£W1N7(C)一工作但,RW的.-I耐空性iF;)口郊烟一好育学习(H01和维JM阳福之卞灯霰-PremiumSoftNavicat8.2forMySQL瘴洋Hz a欢迎安装PreniiumSoftNavicat8.2forMySQL即将在您的计算机上安装PnemiumSoftNavicat82forMySQLo建议您关闭所有的运行程序后继续。点击下一步继续,点击取消取消安装。Copyright2DIDftierriiumScftCyberlenhLtd.fittrijhrtsneserved.下一步阳”|取消-PremiumSoftNavicat8.2forMySQL许可证在维续前,清阅读以下重要信息;清阅读版权许可,维续前必须同意其中的条款中End-UserLic

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论