WWWBoard from Matt's Script Archive | ||||||||||||||||||
1.0 Make a directory
named wwwboard in your public_html directory. 1.1 FOR THIS ASSIGNMENT, download to your computer wwwboard.zip and unzip it. The following files should have come with WWWBoard Version 2.0 ALPHA 2: 1. ALPHA-2 - READ THIS. 2. README 3. wwwboard.pl 4. wwwboard.html 5. faq.html 6. data.txt 7. messages/ 8. wwwadmin.pl 9. passwd.txt 10. ADMIN_README You will edit several of the files that come with WWWBoard Version 2.0 to customize it for your own purposes. Later in this tutorial will be a description of how to edit all of the necessary files: |
||||||||||||||||||
2.0 wwwboard.pl |
||||||||||||||||||
This is the most complicated file
you will need to edit. You can use Notepad to edit/make the necessary modifications
to this file. Open Notepad by clicking on Stat, Programs, Accessaries, and then notepad. Then, locate and open the wwwboard.pl file. This file comes with a lot of variables and many options such as: . Below is a summary of how to edit/configure all of the variables and what the options do:
|
||||||||||||||||||
3.0 wwwboard.html |
||||||||||||||||||
wwwboard.html must be placed in
the directory that you defined in $basedir (in this assignment,
it's wwwboard) of your wwwboard.pl file. It
must be chmoded 777 so that
your web server's uid (User ID) has permission to write to this file.
**Remember, later in this tutorial
we'll rename this file to index.html.** This file needs much less editing than the wwwboard.pl script. There are three things that you will want to edit in this file. The first two are simply the title of your WWWBoard. Currently the two lines look like: <title>WWWBoard Version 2.0!</title> <h1>WWWBoard Version 2.0!</h1> You will want to change the title and header "WWWBoard Version 2.0!" to whatever you want to call your WWWBoard, example CSM 570 Discussion Forum, etc. This should probably be the same as the variable $title that you defined in wwwboard.pl. The third line in this file that you will need to edit is the one that looks like: <form method=POST action="http: bama.ua.edu/cgi-bin/cgiwrap/~account /wwwboard.pl">
You need to change the URL that is in action="" to the same URL that you defined in wwwboard.pl as $cgi_url. Once you have made these changes you can SAVE THIS FILE AS index.html and exit this file. |
||||||||||||||||||
faq.html | ||||||||||||||||||
This file does not need to be edited,
unless you want to change the heading or title or add a link back to your
wwwboard page. It should be placed in the $basedir (wwwboard) directory and its name should reflect that of the $faq_file variable defined in wwwboard.pl It should be chmoded 744, so that it is readable by all. |
||||||||||||||||||
messages/ | ||||||||||||||||||
This is a directory that
should also be placed in $basedir (wwwboard) as defined
in wwwboard.pl. This directory must be chmoded
777 so that messages can be written into it by the server's
UID. |
||||||||||||||||||
data.txt | ||||||||||||||||||
Simply place this file into $basedir
(wwwboard) as defined in wwwboard.pl and chmod it 777 so that the web server can write
an incremented number to it. This is where the file name number will be
kept. |
||||||||||||||||||
You should now be ready to use your
Discussion Forum. |
||||||||||||||||||
4.0 Administration of the
WWWBoard When you downloaded and unzipped wwwboard.zip, it created an ADMIN.README file. Using IE or Netscape, open this file and read it. It will tell you what URL to use to administer your Discussion Forum, such as what the default user name and password is, how to change this default password, how to remove messages by: date, author, and by thread. |