26
Setting up a web server the easy way R. Chris Fraley | http://www.web-research-design.net/P593/

Setting up a web server the easy way

  • Upload
    peers

  • View
    21

  • Download
    0

Embed Size (px)

DESCRIPTION

Setting up a web server the easy way. R. Chris Fraley | http://www.web-research-design.net/P593/. How the Net Works. web user types a URL into the browser. web server locates requested HTML file and sends it to user’s computer. web user the browser renders the HTML file as a web page. - PowerPoint PPT Presentation

Citation preview

Page 1: Setting up a web server the easy way

Setting up a web server the easy way

R. Chris Fraley | http://www.web-research-design.net/P593/

Page 2: Setting up a web server the easy way

How the Net Works

web server

locates requested HTML file and sends it to user’s computer

web user

types a URL into the browser

web user

the browser renders the HTML file as a web page

Page 3: Setting up a web server the easy way

Web servers

• There are a number of ways to obtain access to a web server

– Your university or business– Set up your own using a spare computer– Use a professional web hosting company

Page 4: Setting up a web server the easy way

Web servers

• For the purposes of this course, I’m going to show you how to set up a free account with Netfirms—a professional web hosting company.

• Why Netfirms?– They provide free server access with CGI

capabilities– The “free” part means that they place ads at the

top of your pages, but those ads are not obtrusive like some other companies (i.e., no pop-ups, not flashy).

– Upgrading is simple and low-cost– Great tech support– Easy to transfer files to-and-from the server

Page 5: Setting up a web server the easy way

• For this class I STRONGLY encourage you to get a paid account so that you do not have to deal with adds, long load times, server downtime, etc. If you only use the free account, you WILL get frustrated and I don’t want that frustration to be taken out on me because I’m sensitive in that way.

• Let’s begin . . .

• Go to http://www.netfirms.com/web-hosting/

• Note: The screenshots that follow are old, but will help absent people catch up. For those viewing ppt only, keep in mind that we did this “live” in class.

Page 6: Setting up a web server the easy way

Click the “Free Web Hosting” link.

Page 7: Setting up a web server the easy way

Click the signup now button to continue

Page 8: Setting up a web server the easy way

Click the link for a free Netfirms sub domain

Page 9: Setting up a web server the easy way

Enter the domain name of your choice and then click the search button

Page 10: Setting up a web server the easy way

Click the “continue” button at the bottom of the page (not shown here)

Page 11: Setting up a web server the easy way

Enter your information here.

Be sure to enter a valid e-mail address because Netfirms will send you the information you need to use your account (e.g., passwords) to that e-mail address.

Press the “continue” button when you’re finished.

Page 12: Setting up a web server the easy way

Review your order and click “continue”

Page 13: Setting up a web server the easy way

Congrats!

Now go check your e-mail

Page 14: Setting up a web server the easy way

You’ll need this info when you login

Note: I’ve hidden the password in this slide.

This is the URL for your web site. Click on this link to visit your new web site.

Page 15: Setting up a web server the easy way

Your default page will look something like this.

Notice that the URL is http://aps2005.netfirms.com

Page 16: Setting up a web server the easy way

Enter your member name and password then click the “login” button.

Page 17: Setting up a web server the easy way

File manager can be used to transfer the web pages you create to your account.

Page 18: Setting up a web server the easy way
Page 19: Setting up a web server the easy way

Things to know about your Netfirms account

• There are two major directories

• www – this directory will hold all the files that end with *.htm, *.html, or *.txt. In other words, this directory will hold web pages or other documents you want people to be able to see.

• cgi-bin – this directory will hold all CGI/Perl scripts you write (or borrow) to process data (i.e., to perform dynamic web functions). These files will typically end with the *.pl extension.

Page 20: Setting up a web server the easy way

The “cgi-bin” folder will hold any Perl/CGI scripts that you write.

The “www” folder will hold any HTML files that you write.

Netfirms’ File Manager

Page 21: Setting up a web server the easy way

File manager

• You can transfer files from your computer to the Netfirms server by using Netfirms’ “File manager” application.

• This application provides an interface that allows you to upload files from your computer to the server, in the same way that you may upload files that you’re submitting for publication or to granting agencies.

• Click on directories to see their contents; click the “Up” button to move backwards through a directory. Click “upload” to upload a file to the server.

Page 22: Setting up a web server the easy way

Create a new directory

• Later we’re going to write programs that save data to a text file on the server.

• To keep everything organized, we’ll save data files to a directory called “data”

• This directory does not exist by default in your Netfirms account; you must create it.

Page 23: Setting up a web server the easy way

To create a new directory:

1. Chose the “directory” option

2.Enter “data” in the textbox

3. Press the “create button”

Page 24: Setting up a web server the easy way

The new directory is now listed.

This shows you which directory you are currently navigating.

Page 25: Setting up a web server the easy way

Click here if you need to change permissions

Page 26: Setting up a web server the easy way

Caveat

• As of 2009, it is now possible to run Perl/cgi-scripts in your www directory. Your cgi files do NOT have to exist exclusively in your cgi-bin directory to operate.

• For the sake of consistency with the book and good ole’ fashioned organization, however, I will continue to encourage you to place perl files in cgi-bin directory and standard HTML files in your www directory. Just keep in mind that, literally, this is not required.