1 John Magee 9 November 2012 CS120 Lecture 17a: Publishing Web pages.

Slides:



Advertisements
Similar presentations
4.01 How Web Pages Work.
Advertisements

The Client-Server Model for the Web 1. A Web Client (usually in the form of a web browser) makes an HTTP request to a specific web server. 2. The Web Server.
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
Jun-15 1 Management Information Systems Class Web Server Usage Instructions.
© Copyright 1997, The University of New Mexico C-1 Internet Service Provider Services What to do once you’re connected.
George Blank University Lecturer. Creating A Web Site at NJIT Professor Blank.
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
Master’s course Bioinformatics Data Analysis and Tools Lecture 6: Internet Basics Centre for Integrative Bioinformatics.
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
1 Computing for Todays Lecture 22 Yumei Huo Fall 2006.
The World Wide Web and the Internet Dr Jim Briggs 1WUCM1.
Internet – Part II. What is the World Wide Web? The World Wide Web is a collection of host machines, which deliver documents, graphics and multi-media.
CP476 Internet Computing Browser and Web Server 1 Web Browsers A client software program that allows you to access and view Web pages on the Internet –Examples.
Topics in this presentation: The Web and how it works Difference between Web pages and web sites Web browsers and Web servers HTML purpose and structure.
Lecture Beginning HTML. Early Internet Navigation Prior to 1989, users employed text- based UNIX commands to navigate the various resources on the WAN.
Publishing a Web Page at the University of DE FREC 135.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
Knowledge & Tools for website design. Goals Understand the difference between absolute and relative links. Create.html documents with both absolute and.
17 Web Servers (Apache and IIS)
1 Homework / Exam Exam 3 –Solutions Posted –Questions? HW8 due next class Final Exam –See posted schedule Websites on UNIX systems Course Evaluations.
CNIT 132 Intermediate HTML and CSS Publish Web Page.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
2013Dr. Ali Rodan 1 Handout 1 Fundamentals of the Internet.
The Internet COM 366 Web Design & Production. Brief history Internet began as nationwide network for Department of Defense in 1960s –Expanded to universities.
CP476 Internet Computing Lecture 5 : HTTP, WWW and URL 1 Lecture 5. WWW, HTTP and URL Objective: to review the concepts of WWW to understand how HTTP works.
Connecting to USF Network for Web Site SSH Secure Shell is the FTP program you will use to download your http files onto the USF server. To get the SSH.
Chapter 6 The World Wide Web. Web Pages Each page is an interactive multimedia publication It can include: text, graphics, music and videos Pages are.
CPSC203 Introduction to Computers Lab 69 By Jie Gao.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
CPSC 203 Introduction to Computers Lab 23 By Jie Gao.
20-753: Fundamentals of Web Programming Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 7: HTTP and CGI Fundamentals of Web Programming.
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 1 1 Browser Basics Introduction to the Web and Web Browser Software Tutorial.
MySQL and PHP Internet and WWW. Computer Basics A Single Computer.
1 John Magee 9 November 2012 CS120 Lecture 17: The World Wide Web and HTML Web Publishing.
1 Welcome to CSC 301 Web Programming Charles Frank.
1 © Copyright 2000 Ethel Schuster The Web… in 15 minutes Ethel Schuster
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 1 Key Concepts 1.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
The Web and Web Services Jim Graham NR 621 Spring 2009.
Publishing a Web Page at the University of DE APEC 135.
Introduction to HTML. Today’s Discussion What is HTML ? What is HTML ? What is Web Page ? What is Web Page ? Web Server Web Server Web Browser Web Browser.
World Wide Web “WWW”, "Web" or "W3". World Wide Web “WWW”, "Web" or "W3"
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
Free Powerpoint Templates Page 1 Free Powerpoint Templates Users and Documents.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
CSCI-235 Micro-Computers in Science The Internet and World Wide Web.
Agenda Using FTP What is FTP? How to Use the FTP Program How to transfer files Using FTP.
Web programming Part 1: environment 由 NordriDesign 提供
JavaScript and Ajax (Internet Background) Week 1 Web site:
BZUPAGES.COM WEB SERVER PRESENTED TO: SIR AHMAD KAREEM.
Internet  ’60 = an invention of the US army  Universities and libraries also start to use this communication tool  Protocol + physical network=> backbone.
COSC 2328 – Web Programming.  PHP is a server scripting language  It’s widely-used and free  It’s an alternative to Microsoft’s ASP and Ruby  PHP.
The Internet What is the Internet? The Internet is a lot of computers over the whole world connected together so that they can share information. It.
Finally getting to html and CSS… Tim Berners-Lee, the writer of the software program that makes him the inventor of the WWW, defines the Internet as a.
4.01 How Web Pages Work.
4.01 How Web Pages Work.
Web Programming Language
4.01 How Web Pages Work.
Web Info for Project Presentations
Warm Handshake with Websites, Servers and Web Servers:
Introduction to Programming the WWW I
FTP - File Transfer Protocol
PHP / MySQL Introduction
SEEM4570 Tutorial 07: Filezilla and PHP
Web Page Concept and Design :
4.01 How Web Pages Work.
Web Servers (IIS and Apache)
4.01 How Web Pages Work.
Presentation transcript:

1 John Magee 9 November 2012 CS120 Lecture 17a: Publishing Web pages

2 Overview/Questions –So I got some HTML pages and stuff. How do I make them show up on the web? –What are web servers, anyway? –How do we transfer files to a web server? –Who can see my pages? –URLs, absolute path, and relative path revisited.

3 How to Publish a Web Page Create HTML document, locate ancillary files (e.g images). Create HTML document, locate ancillary files (e.g images). Transfer files to web server Transfer files to web server Set permissions for read access Set permissions for read access Test the URL in your browser Test the URL in your browser

4 Recall: Displaying a WWW Page

5 What’s a Web Server? Is it hardware?  yes! Is it software?  yes!  yes! How is it both? What hardware is needed? What software is needed? What software is needed?

6 What’s a Web Server? Web server: a software application which waits for /responds to HTTP requests. Tim Berners-Lee wrote 2 applications to make the web: –A web browser called WorldWideWeb –A server called HTTPd The first WWW Server at CERN.

7 What’s a Web Server? Today’s web servers use high-performance hardware like this: (fast network and disk access) Pictured: IBM Blade Servers hosting files.myopera.com, photo from Wikipedia

8 What’s a web server? The Apache HTTP Server is the most popular web server (since 1996). Roles: –Processing HyperText Transfer Protocol –Logging –Delivering static content from the file system –Running scripts to deliver dynamic content

9 LAMP Model The most common structure for web applications uses this configuration: Linux operating system for a server Apache web server software MySQL database software PHP/Perl/Python scripting language to create dynamic HTML

10 How a Web Server Works Receives HTTP Request Receives HTTP Request Search for resource (file) on disk Search for resource (file) on disk Send HTTP Response (status code + data) Send HTTP Response (status code + data) –If not found: status 404 (NOT FOUND) –If not permitted: status 403 (FORBIDDEN) –… –Else: status 200 (OK) + send data

11 cs-people.bu.edu Our WWW server is The web server has a file system which it searches for a URI (resource pathnames). –Subdirectories for individual users:   –Example: 

12 Your UNIX Home Directory With the CS UNIX account, each user has a “home” directory: General form: /home/<username>/Example:/home/jmagee/ This has a UNIX pseudonym of ~.

13 Your WWW Directory The web server will map this URL: / to your CS UNIX’s account’s ~/public_html/ directory

14 Locate files in Finder/Windows Explorer Find your files on your local computer

15 How to Transfer Files to csgateway.clarku.edu Use a file transfer client-program: –Fetch (Mac) (a free academic license is available) –WinSCP (Windows) (also free) - SSH Secure Shell (Windows)

16 Connecting by WinSCP: –Hostname: csgateway.clarku.edu –Be sure to use the “SFTP” protocol

17 WinSCP to csa2.bu.edu After you connect, transfer files by drag’n’drop. Then right- click to set permissions.

18 File Permissions Each file has its own set of permissions for: –Reading, writing or executing –Owner, group, or others –This leads to a 3x3 matrix of permissions:

19 Setting Permissions by WinSCP Right-click to open this dialog Right-click to open this dialog Set the permissions to 644 Set the permissions to 644

20 Transferring File by Fetch Use drag’n’drop interface to transfer files… Use drag’n’drop interface to transfer files… Then use the Get Info button to set permissions. Then use the Get Info button to set permissions.

21 Setting Permissions by Fetch Set permissions to 644 Set permissions to 644

22 Testing the Webpage: After uploading the files, test in your browser: There are two special filenames that the web server looks for automatically: –home.html –index.html

23 Take-Away Points –Web server –UNIX home directory –File Transfer Protocol –UNIX File Permissions