Thông tin tài liệu:
Bạn kiểm tra xem máy bạn đã cài IIS chưa, Vào Control Panel/AddRemoveWindowsComponents. Trong phần Windows Components Wizard xem cái Internet Information Services(IIS) có được đánh dấu không. Nếu chưa thì đánh dấu vào đó. Nhấn Next/Finish/Close để cài IIS.
Nội dung trích xuất từ tài liệu:
Các bước cấu hình LocalhostCácbướccấuhìnhLocalhost:trangnàyđãđượcđọc lầnBước1:KiểmtraIIS:BạnkiểmtraxemmáybạnđãcàiIISchưa,VàoControlPanel/AddRemoveWindowsComponents.TrongphầnWindowsComponentsWizardxemcáiInternetInformationServices(IIS)cóđượcđánhdấukhông.Nếuchưathìđánhdấuvàođó.NhấnNext/Finish/CloseđểcàiIIS.MởIElên,gõvàohttp://localhost/xemcóchạykhông.NếuhiệnramànhìnhcủaIISthìđãthànhcông.Bước2:CấuhìnhIIS(BướcnàykhôngcầnthiếtnếunhưbạnchưađụngchạmnhiềuvàoWin,tuynhiêncũngtìmhiểu mộtchútđểnắmrõhơn)HãyvàoStart/Programs/AdministrativeTools/ConfigureYourServer,N ếuthấyhiệncửasổchophépbạnlựachọnserver.HãychọnThisistheonlyserverinmynetwork.ViệcnàythườngđượclàmngaysaukhicàiWin.Bạncóthểbỏbướcnàynếunhưchưathayđổigìtrongđó.Chọnnextởbướctiếptheo.Nếuthíchbạncóthểđọchướngdẫntrênmàhìnhđểtìmhiểu.Theotôithìkhôngcầnthiết.Trong2ôđểtrốngcủacửasổmớibạnchỉcầnđiềnlocalvàomỗiô.Chọnnext.MáysẽtựđộngcàiđặtcáiLocalhostchobạn.BạnsẽgặpbáolỗichưachuyểnPartitionchođĩasangNTFS5.0(nếubạnvẫnsửdụngFAT32),tuynhiênkhôngvấnđềgìđâu.CứOKchoquathôi.Vậylàxongviệcthứhai,bạncóthểđóngcửasổConfigureYourServer.Cácchươngtrìnhcầnthiết!!1.CàiActivePerlDownloadởhttp://www.activeperl.com/NêncàichươngtrìnhnàyvàothưmụcmặcđịnhlàC:\Perl2.ConfigđểActivePerlchạyfile*.cgi VàoStart/Programs/AdministrativeTools/InternetServicesManager. • BấmchuộtphảivàoDefaultWebSite,vàoProperties • ChọnHomeDirectory.NhớđánhdấuvàoScriptandsourceaccessvàRead,bỏđánh • dấuởWrite(nếucó). ỞExecutePermission,chọnScriptsandExecutables.ẤnApplyvàchọntoànbộ.OK. • ClickvàonútConfiguration...cạnhExecutePermission,chọnAdd.ChọnBrowsvàtìm • thưmụcC:/Perl/bin.ỞFileofType(cuốicửasốOpen)chọnDinamicLinkedLibraries (*.dll).LênchọnPerllS.dll.ClickOpen. Gõ.cgi(đừngquêndấuchấmtrướccgi)vàoExtension • ChọnLimitto,gõvàođócácchữGET,HEAD,POST(khỏicầndấucách).ClickOK/OK/ • OKVậylàbạnđãconfigxongcáiLocalhostchomáycủabạn.NhớrằngmọithứmàbạnmuốnđặtvàotrangWebcủamình,bạnhãycopyvàothưmụcC:/Inetpub/wwwrootĐâysẽlàthưmụcgốccủaWeb.Cònnếubạnmuốnchạycácfileởđó,đườngdẫnsẽlàhttp://localhost/TÊN_FILE.Vídụnhưbạnmuốnchạycáicp.cgicủaUBB,đơngiảnbạnchỉcầnchạyhttp://localhost/cp.cgiVậythôi.3.KiểmtraxemCGIvàPLđãchạychưaĐểtestPerl,hãytạo2filehello.cgivàhello.plcócùngnộidungsau: #!/perl/bin/perl.exe #simplehelloworldcgiscript printContenttype:text/html\n\n; printHelloworldfromPERL$]\n;Lưuhaifilenàyvàothưmụcwwwroot.BâygiờthìmởIE,nhậpvàohttp://localhost/cgibin/hello.cgivàhttp://localhost/cgibin/hello.pl.Nếubạnnhậnđược:Hello,world!Xinchúcmừngbạn!1.CàiPHPDownloadtạihttp://www.php.net/NêncàichươngtrìnhnàyvàothưmụcmặcđịnhlàC:\PHPChạysetupnếubạndownloadfile*.exetrênwww.php.netvề.Cònnếukhôngthìthựchiệntheocácbướcsau:Tìmfilephp.inidisttrongthưmụcC:\PHPvàđổitênthànhphp.iniCopyfilephp.inivàthưmụcC:\WINDOWShoặcC:\WINNT(thưmụcmàbạncàiđặtWindowsđó!)Copy2filesmsvcrt.dllvàphp4ts.dlltừC:\PHPvàoC:\WINDOWS\SYSTEMhoặcC:\WINNT\SYSTEM32.SaukhicàiPHP,trongmáycủabạnsẽcófilephp.initrongc:\winnthoặcC:\windows,bạnnênthayđổimộtchút.Nào,bâygiờtadùngmộtchươngtrìnhđểsửafilephp.ini,tôidùngNotepadcótrongwindows,vàothưmụcc:\winnthoặcc:\windows,mởfilephp.inivàlàmnhưsau: Tìmdòngregister_globalsvàthayđổithànhOn • Tìmdòngerror_reportingvàchuyểnE_ALLthànhoff • Tìmdònginclude_pathvàthêmvàodướidòngđóđườngdẫncủathưmụcroot: • .;c:\inetpub\wwwroot SAVElạivàEXIT. •(Chúý:NếubạndùngNotepadhãynhấnF3rồigõtừcầntìmvàohộptìmkiếm)Đểđỡrắcrối,cácbạnhãycopypastenguyênnộidungfilenàyvàofilephp.inicủabạn.Fileđóđâyhttp://www.diendantinhoc.net/tute/hethong/phpnuke/php.txt2.CấuhìnhđểIISchạyđượcphp. MởControlPanel>AdministrativeTools>InternetServicesManager • NhấnchuộtphảivàowebsitevàchọnProperties • ClicktabHomeDirectory,đổithànhScriptsandExecutablesTrongExecute • Permissions. ChọnConfiguration,trongtabAppMappingschọnAdd. • tronghộpExecutablebạncầnbrowsetớifilephp.exetrongthưmụcđãinstallPHP • (thườnglàc:\php\php.exe).Thêm%s%svàphíasauthànhc:\php\php.exe%s%s.Gõ vàohộpExtensiondòngchữsau.php(Cócảdấuchấm). NhấnApply/OK/OK. •3.Chạythửphp.ĐểtestPHP,hãytạomộtfileinfo.phpcónộidungnhưsau: Copyfileinfo.phpvàowwwroot,MởIE,nhậpvàohttp://localhost/info.php.NếuIEhiệnrathôngsốcủaPHPthìđãthànhcông.Cònnếubáothiếufile*.dllthìbạnhãytìmtrongthưmụcC:\PHPxemfileđónằmởđâu,copyfileđóvàovàoC:\WINDOWS\SYSTEMhoặcC:\WINNT\SYSTEM32.1.CàiMySqlDownloadMySqltạihttp://www.mysql.com/NêncàinóvàothưmụcmặcđịnhlàC:\MySqlChạyfileSETUPcủabộcàiđặtMySQL,hayfilenénInstaller.Chọnđườngdẫnmặcđịnh.:wink:2.CấuhìnhchoMySQLChạyC:\mysql\bin\winmysqladmin.exeSaukhichạywinmysqladmin.exe,bạnsẽnhậnđượcmộtthôngbáoyêucầutạouser+pa ...