<< Back

How To Use WebHawks

On This Page

Overview

The domain name WebHawks.org allows current Cabrillo College students to post web documents on the Internet. To make use of this web site, you must be currently enrolled at Cabrillo College in one of the courses making use of the WebHawks.org site.

These instructions for accessing WebHawks.org assume use of the CTC computers running Windows XP.

Logging In

To login in, you will need both a login name and password. All login names and passwords are lower case.

Thus, Isaac Newton's login for CIS-132 course would be cis132isnewt1234 and his password would be his birthday follwed by the last 4 digits of his ID: 0104431234. For CIS-165PH, his login would be isnewt1234 and his password would be his birthday: 010443.

After you know your login name and password, you can login to WebHawks.org using PuTTY. PuTTY is a free Telnet/SSH client for Win32 and Unix platforms. It is installed on all the CTC machines and you can install it at home as well.

Once you start PuTTY, you will see a window like the following:

PuTTY session

You need to make sure that:

When you press the Open button, you will be taken to a command-line window like the following:

Login session

To complete the login process, you enter your user name at the login prompt and your password at the password prompt. In this example, the user name is isnewt1234.

After you login, you will have terminal-level access to your account on WebHawks. You will be able to list files and change directories. For tutorial information on Linux, see:

Transferring Files

The CTC has installed Core FTP Lite on their computers. Core FTP Lite is a free FTP client that supports SSH. You can view instructions for uploading files to WebHawks at How to Upload to WebHawks.org with CoreFTP Lite. Also, Mac users can upload using Fetch. See John Govsky's: How to Upload to Webhawks.org with Fetch. Be careful to use your correct login when following these instructions.

Make sure you transfer your project files into the public_html directory for your account. The exception is your database SQL file, which should be transferred to your home directory. Once you have files in your public_html directory, you can view them in your browser by going to the URL:

http://www.webhawks.org/~yourlogin/

For example, Isaac Newton (enrolled in the CIS-165PH course) would view his web files at the URL:

http://www.webhawks.org/~isnewt1234/

Using MySQL on WebHawks

If you are enrolled in a course that uses MySQL, you will have a database you can use on WebHawks. To use MySQL on WebHawks, you must either use the command line (terminal window) or install phpMyAdmin in your public_html directory.

While you can install phpMyAdmin, I do not recommend it. If you do, then you will need to configure it yourself. Instead, I recommend that students use the command line in the terminal window as described below.

Each student is supplied with one database, in addition to test, which has the same name as their WebHawks login. You must use your assigned database and cannot create another. Also, each student has a MySQL login that is the same as their WebHawks login. The password for MySQL is the same as your login password.

Installing a Database from the Command Line

You can install a database file on WebHawks using the mysql command line client and input redirection. After transferring your dbname.sql file to your account on WebHawks, you can import a database using:

mysql -u userName -p yourdbname < dbname.sql
Enter password:

Where:

For example:

-bash-2.05b$ mysql -u isnewt1234 -p isnewt1234 < artzy.sql
Enter password:

Note that you are prompted to enter your password. However, mysql will not show a characters, like '*', when you type your password. Do not let his trick you into typing your password twice or to make some other typing error.

Using dbconvars.php

<< Back