Web Servers ISS HDDPd microsoft XAMPP apache Web
Web Servers ISS HDDPd (microsoft) XAMPP (apache)
Web Server • Responds to requests from Browsers • Delivers the requested content • Many Web server software packages – Big 3 • Apache • IIS HTTPd server (Microsoft) • Nginx
HTTPd WINDOWS WEB SERVER
HTTPd server • Comes with all Windows systems – Built into all the Windows OSs – Just needs to be activated • May need to be customized – Current versions of Windows may have "protection" that needs to be altered
Activate • To access (Win 7): – Control Panel • Programs – Programs and features » Turn Windows Features on or off • Click the "+" on Internet Information Services • Clcik box on World Wide Web Services – Optionaly click Web Management Tools • Click OK
Test • Open a Web Browser – e. g. Chrome, IE, or Firefox • Enter localhost and press <Enter> – A test page should appear
Create your own content • Locate the Web servers home directory – Open Windows Explorer (Compter icon) – Open the inetpub folder • Open wwwroot – iistart. htm is the code for the default home page you saw – Create a file default. html • <html> • Hello world • </html> – Test with browser and localhost
APACHE
XAMPP • Prepackaged complete test server system – X: cross platform (Windows, Linux, OS X) – A: Apache Web server – M: My. SQL database – PP: Perl, PHP, Python programming languages • Download the package for your OS – https: //www. apachefriends. org/download. html • Run the exe to install (next page)
Install XAMPP • Run the exe – Name similar to • xampp. win 32 -7. 2. 5 -0 -VC 15 -installer. exe – – – – Yes to install Yes to continue Click Next Leave all checked, click Next Ensure Folder is c: xampp, click Next Click Next (Installing) Select Private Networks click Allow access Click • Choose your language and save
Configure • From XAMPP Control Panel – Click Config • Select Editor: – Suggest Notepad++ instead of notepad » See notes at end to install • Select Browser (Default is good) • Autostart – Apache – Click Save
Start • Start the XAMPP Controller – Can change the Config from here – Start Apache • Note: – Default port is 80 • If you have enabled ISS HTTPd server there will be a conflict • Either – Disable the IIS server – Change Apache port to the standard alternative 8080 » Clikc the Apache Config icon » Find Listen 80 and change to » Start Apache again
Test • Open a browser – Enter localhost • A test page should appear • Note: if IIS HTTPd is installed use the alternate port localhost: 8080 • Open Windows Explorer – c: /xampp/htdocs – index. php is the default page you saw • index. php is a "magic" default name – it calls index. html in the dashboard folder – With your editor create index. html • <html> • Hello World • </html> – Test with browser now /localhost/index. html
NOTEPAD++
Notepad++ • Good programming editor – Great upgrade for Windows Notepad – Understands HTML, PHP and more • Download: – https: //notepad-plus. org/ – Use defaults
- Slides: 15