|
CSCI A348/548
|
Introduction and announcements:
LH 102 (TR, 7pm)
LH 115. Access provided by the instructor.
LH016 as posted or by appointment.
ac.csci.a348
E-mail:dgerman@indiana.edu
Telephone:855-7071
Office:Lindley Hall 301G
http://accounts.ucs.indiana.edu
to create your own account if you don't have one.
You will need to have an IUB Network ID. If you experience any
difficulties please ask your instructor for help.
LH004. You can get individual access
to the room if you go to LH215 with your student photo ID and request access.
You will need to fill out a form and shortly after that you will be able to use your student
ID to enter the room.
This machine has an aliasburrowww.cs.indiana.edu
which is somewhat easier to type and perhaps easier to remember.www.burrow.cs.indiana.edu
Initial server setupThis course is mostly oriented towards providing functionality (transactions) rather than just static hierarchies of documents although we will discuss those as well.
CGI and Perl (server side) programming
Client side (Java and Javascript) programming
Writing and understanding servers and clients
Network protocols
Java servlets and Java RMI
Web security
Web site design considerations
Team projects
We'll also look at PHP, JSP, JDBC, SSL, XML, DHTML
The following is related to the material that starts on page 68 in what is listed at the bookstore as the required text (by Lincoln Stein).
You will need to use your own username and port number (listed on the students and projects page) to install Apache.
dgerman)
www.burrow.cs.indiana.edu, just as anyone else's.
10000)
www.burrow.cs.indiana.edu machine. Then install Apache. Here's a summary of the steps:
mkdir apache
cd apache
cp /u/dgerman/apache*.gz apache.tar.gz
You would otherwise get it from http://www.apache.org in a way that will be
detailed soon. This version of Apache is 1.3.1 - we will soon install a more recent version,
and eventually the latest version, but to start with we install v1.3.1 (1998).
For next sequence of commands explanations to be provided in the labs and lecture. It would be good and worthwhile for you to try to annotate them.
gunzip apache.tar.gz
tar xvf apache.tar
cd
mkdir httpd
cd httpd
cp -R ../apache/apache_1.3.1/* .
mv src/httpd-solaris26 httpd
cd conf
cp httpd.conf-dist httpd.conf
emacs httpd.conf
This is the server's main configuration file. Identify the two lines that
start with ServerRoot and Port, and change them to:
ServerRoot /u/dgerman/httpd
Port 10000
You need to use your own username and the port assigned to you, so replace the
information in blue with your own information. Ports will
be distributed in the lab and are posted on the
course web page.
Also add a line like this
LockFile /tmp/apache.lockfile.dgerman
at the end of httpd.conf. Make sure it ends in your username.
cp srm.conf-dist srm.conf
emacs srm.conf
This configuration file defines the name space for the server's users and a few
other settings. Identify the lines that start with DocumentRoot and
ScriptAlias and make the following changes:
Make sure that you use your username.DocumentRoot /u/dgerman/httpd/htdocs ScriptAlias /cgi-bin/ /u/dgerman/httpd/cgi-bin/
cp access.conf-dist access.conf
emacs access.conf This file defines access-related settings. Identify those lines that contain
and make the following changes to them:@@ServerRoot@@
Please make sure you're using your username.<Directory /u/dgerman/httpd/htdocs> <Directory /u/dgerman/httpd/cgi-bin>
You just need to start it.
cd ..
Try http://www.burrow.cs.indiana.edu:10000 now.
Make sure you use your port number.
./httpd -d .
Try http://www.burrow.cs.indiana.edu:10000 again now.
Make sure you use your port number.
Make sure you notice the backquotes (cd logs kill -HUP `cat httpd.pid`
`). They're special.
On my keyboard the backquote charatcer is on the same key with
tilda (~) key.
This is right above the BackSpace key. On your keyboard it might be different.
cd logs
kill `cat httpd.pid`
Of course this was just a quick tour.
We'll go over this in greater detail in class on Thursday.
A348/A548.