9/21/04 James Gallagher Server Installation and Testing: Hands-on ● Install the CGI server with the HDF and FreeForm handlers ● Link data so the server.

Slides:



Advertisements
Similar presentations
How to Use Stowe School District
Advertisements

Editorial roles Members of a Manila site can be assigned an editorial role if you want to grant them access to write stories or modify the appearance of.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
Chapter Apache Installation on Linux. Acknowledgement The contribution made by Darrin Morison is acknowledged.
Tutorial 6 Working with Web Forms
Chapter Apache Installation in Linux- Mandrake. Acknowledgment The following information has been obtained directly from
Guide To UNIX Using Linux Third Edition
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.
Apache : Installation, Configuration, Basic Security Presented by, Sandeep K Thopucherela, ECE Department.
LING 408/508: Programming for Linguists Lecture 16 October 16 th.
CGI Programming: Part 1. What is CGI? CGI = Common Gateway Interface Provides a standardized way for web browsers to: –Call programs on a server. –Pass.
Configuring Apache tomcat Specifying the server port NOTE: Edit the install_dir/conf/server.xml and change the port attribute of the connector element.
Linux Operations and Administration
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
Hyrax Installation and Customization Dan Holloway James Gallagher.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
XP Tutorial 6New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Creating Web Page Forms Designing a Product Registration Form Tutorial.
XP Tutorial 6New Perspectives on HTML and XHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
Lesson 13: Building Web Forms Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver CS6.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
An introduction to Apache. Different Types of Web Servers Apache is the default web server for may Unix servers. IIS is Microsoft’s default web server.
Guidelines for Homework 6. Getting Started Homework 6 requires that you complete Homework 5. –All of HW5 must run on the GridFarm. –HW6 may run elsewhere.
Python CGI programming
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
Installing and Using Active Directory Written by Marc Zacharko.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
Apache, MySQL and PHP Installation and Configuration Chapter 1 Apache Installation and Configuration.
Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
SIR and the WEB By Dave Doulton University of Southampton.
Introduction to JavaScript CS101 Introduction to Computing.
WAMP Windows Apache MySQL and PHP i.e. “WAMP”. Why WAMP? WampServer is a Windows web development environment. It allows you to create and test web pages.
Apache, MySQL and PHP Installation and Configuration Chapter 2 MySQL Installation and Configuration.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Form Processing Week Four. Form Processing Concepts The principal tool used to process Web forms stored on UNIX servers is a CGI (Common Gateway Interface)
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
PHP Syntax You cannot view the PHP source code by selecting "View source" in the browser - you will only see the output from the PHP file, which is plain.
PHP Form Processing * referenced from
Tomcat Setup BCIS 3680 Enterprise Programming. One-Click Tomcat Setup 2  This semester we’ll try to set up Tomcat with a PowerShell script.  Preparation.
9/21/04 James Gallagher Server-Side: The Basics This part of the workshop contains an overview of the two servers which OPeNDAP has developed. One uses.
Multi-Domain Hosting CPTE 212 “Missing Slides” for 1/22/2015 John Beckett.
1.Switch on the computer and wait for loading. 2.Select the Windows 7 OS at the end of the list. 3.Click on the link ‘Administrator’ 4.Enter the administrator.
Apache Web Server v. 2.2 Reference Manual Chapter 2 Starting Apache.
XP Tutorial 6New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
Mahara-Moodle Integration Iñaki Arenaza This work licensed under the conditions of “Creative Commons Attribution-Share Alike 3.0 Spain License”
Installing the THREDDS and Aggregation Servers ● Install and verify the Tomcat servlet engine ● Install and verify the THREDDS servlet (which also contains.
WampServer 2 Installation WAMP is a solution stack of open source programs used together to run dynamic Web sites or servers Most common expansion:  Windows,
2440: 141 Web Site Administration Web Forms Instructor: Joseph Nattey.
Checking the Server.
Student SOLE Page – Living Page
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
Data Handlers.
* Lecture # 7 Instructor: Rida Noor Department of Computer Science
Introduction to Programming the WWW I
Checking the Server.
MapServer In its most basic form, MapServer is a CGI program that sits inactive on your Web server. When a request is sent to MapServer, it uses.
Bomgar Remote support software
Microsoft FrontPage 2003 Illustrated Complete
Intro to UNIX System and Homework 1
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Part 2 Setting up a web server the easy way
Configuring Internet-related services
Part 2 Setting up a web server the easy way
bitcurator-access-webtools Quick Start Guide
OPeNDAP/Hyrax Interfaces
How to install and manage exchange server 2010 OP Saklani.
Presentation transcript:

9/21/04 James Gallagher Server Installation and Testing: Hands-on ● Install the CGI server with the HDF and FreeForm handlers ● Link data so the server can access it ● Test data access ● Build a File Server using FreeForm ● Total time: two hours

9/21/04 James Gallagher Assumptions ● Instructions are specific to Apache httpd ● You have root access privileges ● You are working on a Linux (or Unix) machine ● You understand basic Unix system tasks and commands

9/21/04 James Gallagher Edit Apache's Configuration ● Open the Apache web server configuration file in an editor ● You will likely need root access privileges to modify the file

9/21/04 James Gallagher Edit Apache's Configuration, cont. ● Add an entry for a ScriptAlias directory – this will hold the programs which make up the server ● You can use an existing ScriptAlias directory (e.g., cgi-bin) but adding a new directory keeps the OPeNDAP server separate from other CGI programs

9/21/04 James Gallagher Edit Apache's Configuration, cont. ● Add a Directory block for the ScriptAlias directory you previously added ● If you're using an existing directory, make sure the Options and access controls are set appropriately

9/21/04 James Gallagher Edit Apache's Configuration, cont. ● Make sure that the FollowSymLinks option is turned on ● This provides a simple way to 'link' data into the web server's document tree ● Alternative: Copy the data directly into the DocumentRoot tree

9/21/04 James Gallagher Edit Apache's Configuration, cont. ● Restart the web server – there are several ways to do this, all require root access ● Check the web server's 'error_log' to confirm that the server restarted correctly ● If there's a problem with the configuration file, error messages will appear in the log

9/21/04 James Gallagher Unpack the OPeNDAP Server ● Expand/unpack the server- tools and hdf-server binary distribution files ● This will create a tree rooted in a directory named 'DODS'

9/21/04 James Gallagher Unpack the OPeNDAP Server, cont. ● Change into the 'DODS/etc' directory and run the installServers script ● It's a good idea to run this as root, although it's not required if you're careful about directory access controls

9/21/04 James Gallagher Unpack the OPeNDAP Server, cont. ● The script prompts for some information: – Enter the name of the ScriptAlias you defined when asked where to install the server – The script also asks about registering your server and about providing access to usage information

9/21/04 James Gallagher Unpack the OPeNDAP Server, cont. ● Registering your server sends an notice to OPeNDAP that tells us the machine name and software version number.

9/21/04 James Gallagher Unpack the OPeNDAP Server, cont. ● Providing access to usage information enables OPeNDAP to remotely examine the DAP access made to your server. ● Both of the registration and remote usage access options are disabled by default.

9/21/04 James Gallagher Verify Basic Server Operation ● Access the server's version number in a web browser ● For the server we've just installed, the version information is accessed using: dods/version dods/version ● This does not access data, but does verify proper configuration of the web server and operation of the OPeNDAP server

9/21/04 James Gallagher Verify Basic Server Operation, cont. ● Expand/unpack the Pathfinder data

9/21/04 James Gallagher Verify Basic Server Operation, cont. ● Go to the web server's DocumentRoot directory (look in the httpd.conf file if you don't know where this is) ● Create a symbolic link from inside the DocumentRoot to the 'pathfinder_data' directory ● You'll need to be root to create the link

9/21/04 James Gallagher Test Data Access ● Use a web browser to look at the server's directory information for the pathfinder data ● The URL is: dods/path/ dods/path/

9/21/04 James Gallagher Test Data Access, cont. ● Click on one of the datafiles to see the server's HTML form interface for data

9/21/04 James Gallagher Test Data Access, cont. ● To see the values of a specific variable in the data set: – Click the checkbox to the left of the variable's name. – Edit the constraint info which appears below the variable's name. – Click the 'Get ASCII' button near the top of the form.

9/21/04 James Gallagher Test Data Access, cont. ● Data values are returned as text to the browser – hardly the best way to use data, but great for verifying proper operation of the server ● Use the constraints to examine specific locations in the data set and make sure they match with your expectations

9/21/04 James Gallagher Test Data Access, cont. ● A web browser can be used to look at more than the service responses (we've seen the version, directory, HTML form and ASCII responses) ● Remove the '.html' suffix from the URL in the browser and append '.dds' in its place – you'll see the DDS object appear in the browser's window

9/21/04 James Gallagher Testing with the ODC ● Enter the URL ● Click 'Add to List' ● Provide a name

9/21/04 James Gallagher Testing with the ODC, cont. ● Select 'dsp_band_1' ● Click 'Output to'

9/21/04 James Gallagher Testing with the ODC, cont. ● Select 'dso_band_1' ● Click 'Plot to'

9/21/04 James Gallagher Testing with the ODC, cont. ● It's easy to see more plots

9/21/04 James Gallagher Configure the FreeForm Server ● Expand/unpack the FreeForm server ● Install the server

9/21/04 James Gallagher Configure the FreeForm Server,... ●... make sure to specify the correct destination directory for the server ● There's no need to install a second copy of the common code or to register the server again

9/21/04 James Gallagher Create a File Server Data Set ● Make a directory to hold the File Server data ● Create a listing of the files in the Pathfinder data set and put that listing in that directory

9/21/04 James Gallagher Create a File Server Data Set, cont. ● Here's what the file looks like so far...

9/21/04 James Gallagher Create a File Server Data Set, cont. ● Change the file names to URLs ● In this tutorial, the host is called 'localhost' but in a File Server that is to be accessed by other machines that should be replaced with the fully qualified domain name of the computer

9/21/04 James Gallagher Create a File Server Data Set, cont. ● In addition to the URLs for each of the Pathfinder data files, we'll need to add columns for the data and time ● Date and time are encoded into the filenames...

9/21/04 James Gallagher Create a File Server Data Set, cont. ● I used an emacs macro to edit each line. ● For large inventories, you'll need to write a sed, perl, et c., script to edit the file. ● What's important: We have a new data set with six columns of text data: five which hold date and time information and one with the matching URL.

9/21/04 James Gallagher Create a File Server Data Set, cont. ● As before with the pathfinder data, create a link from the web server's DocumentRoot directory back to the File Server data

9/21/04 James Gallagher Write a Format File for the File Server Data ● We need to tell the FreeForm server how to read the data ● The FreeForm server reads text and binary data organized in columns ● It uses a format file to determine what variables are present in the file, their data type and location

9/21/04 James Gallagher Test the FreeForm Server ● Use the browser to test the new data set ● It's easy to ask for a URLs which match a specific day number using the form to give a constraint.

9/21/04 James Gallagher Test the FreeForm Server, cont. ● Here's the response ● Problem: most people don't think in terms of 'day number' ● A year/month/day or month/day/year interface would be more natural for many people.

9/21/04 James Gallagher Using an Ancillary Attribute File ● Create an ancillary attribute file to further configure the File Server ● The file must be named '.das'

9/21/04 James Gallagher ● Using a text editor, create the attribute containers 'DODS_Time' and 'DODS_Date' ● Assign the hours_variable, etc., attributes of these containers to the matching variables in the data set Using an Ancillary Attribute File,...

9/21/04 James Gallagher Using an Ancillary Attribute File,... ● Use the HTML form interface to verify the presence of the new attributes

9/21/04 James Gallagher Using an Ancillary Attribute File,... ● Access the file server using 'date()' constraint function ● date() takes a double- quoted string of the form year/month/day or month/day/year ● Note the constraint requests only the URL be returned ● You must type this constraint in by hand

9/21/04 James Gallagher Using an Ancillary Attribute File,... ● The URLs returned look the same but the constraint is far more natural ● The 'date()' function accepts several different date formats including ISO8660 date-time strings

9/21/04 James Gallagher Testing with the ODC ● Enter the URL ● Click 'Add to List' ● Provide a name

9/21/04 James Gallagher Testing with the ODC, cont. ● Select 'dsp_band_1' ● Click 'Output to'

9/21/04 James Gallagher Testing with the ODC, cont. ● Select 'dso_band_1' ● Click 'Plot to'

9/21/04 James Gallagher Testing with the ODC, cont. ● It's easy to see more plots