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.
- Login name for CIS-132: course name + Blackboard login
- Password for CIS-132: Your birthday (MMDDYY)
- Login name for CIS-165PH: Blackboard login
- Password for CIS-165PH: Your birthday (MMDDYY)
Thus, Isaac Newton's login for CIS-132 course would be
cis132isnewt1234and his password would be his birthday follwed by the last 4 digits of his ID:0104431234. For CIS-165PH, his login would beisnewt1234and 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:
You need to make sure that:
- SSH is selected
- Host Name is:
www.webhawks.orgWhen you press the Open button, you will be taken to a command-line window like the following:
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_htmldirectory for your account. The exception is your database SQL file, which should be transferred to your home directory. Once you have files in yourpublic_htmldirectory, 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_htmldirectory.
- For phpMyAdmin installation instructions, see the phpMyAdmin Documentation.
- For instructions on using MySQL at the command line tool, see the MySQL documentation or page 23 of the CIS-165PH textbook.
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
mysqlcommand line client and input redirection. After transferring yourdbname.sqlfile to your account on WebHawks, you can import a database using:mysql -u userName -p yourdbname < dbname.sql Enter password:Where:
- userName is your MySQL user name (same as PuTTY login)
- yourdbname is your MySQL databae name
- dbname.sql is a SQL file exported from your project database
For example:
-bash-2.05b$ mysql -u isnewt1234 -p isnewt1234 < artzy.sql Enter password:Note that you are prompted to enter your password. However,
mysqlwill 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
- You must use the correct settings for
dbconvars.phpin WebHawks- You will need to use your Webhawks user name, login and database name
For example, Isaac Newton's
dbconvars.phpfile would be:<?php $dbhost = "localhost"; $dbuser = "isnewt1234"; $dbpwd = "010443"; $dbname = "isnewt1234"; ?>