corner1.gif (159 bytes) corner2.gif (159 bytes)

<< Previous Page
Index

Index
Sitenet BBS Home

Next Page >>
Upgrade Instructions

SiteNet BBS Documentation Chapter 1

Installation

1.1 Requirements to run SiteNet BBS
1.2 Unix/Linux installation instructions
1.3 Unix/Linux installation Trouble shooter
1.4 Windows/NT installation instructions
1.5 Windows/NT Installation trouble shooter
1.6 Enabling Search Engine Friendly URL's

 

1.1 Requirements

The requirements are those that most CGI scripts in general will require. What is required to run SiteNet BBS?

  • Your own standard cgi-bin directory.
    This is the directory where the cgi scripts are executed from. An example of a standard cgi-bin directory:
    http://www.yourdomain.com/cgi-bin     

  • Perl Ver 5+    

  • FTP access to transfer files and to set permissions of files and directories.    

  • Linux/Unix or Windows

1.2 Unix/Linux Installation Instructions

The installation of SiteNet BBS should be painless. Every measure has been taken to ensure that you get it right the first time. The installation instructions looks like a lot of text, but the reason that it has so much text is to make things as clear and easy as possible.

Follow the steps below exactly as described and you should have SiteNet BBS serving you in a couple of minutes. Do the steps as you read through them.

Note that all example paths used in these installation instructions is fictional and only for example purposes. It may not apply to you.

Step 1. (Extract the .zip archive)

Extract the files with their directories that came in the .zip archive.

Step 2. (Create a 'data' directory on your host/server)

Create a directory on your server/host called 'data' or whatever you would like to name it. This directory will be used to store all data files. The data files contains settings, messages, etc.

A good location for this directory is somewhere where the web server cannot access it. Another way of saying this, is to say that you need to create the 'data' directory somewhere where a visitor to your web site cannot access the contents of this directory.

This means that you must not place/create this directory in your cgi-bin or public HTML document directory.

A good place to place this directory would be for example:
/home/yourdomain.com/data
where your cgi-bin directory will reside in something like
/home/yourdomain.com/www/cgi-bin
and your public HTML directory in something like
/home/yourdomain.com/www

Step 3. (Copy files to the 'data' directory)

The .zip archive will contain directories inside it. These directories are 'cgi', 'data' and 'html'

Now copy the files inside the 'data' directory of the .zip archive to the 'data' directory you have just created.

Step 4. (Set permissions of the 'data' directory and files within it)

Assign the permissions 777 to the data directory and all the files residing in it.

4.1 How to set permissions from your ftp client/program:
Most FTP clients have the ability to set file permissions. Go to the 'data' directory where the 'data' files resides, and select the files. In your FTP client there should be a menu item or button where you change the file attributes or file permissions. Set the permissions/attributes of the files to 777. Also set the data directory you have created to the permission setting of 777.
  
4.2 How to set permissions from telnet or SSH
If your host/server disallows permissions to be set from ftp, you might want to take this route. Telnet/SSH into your hosting account/server and go to the 'data' directory where you copied the 'data' files. chmod 777 the files by issuing the following command from the command prompt:
chmod 777 *
Also set the directory to the permission setting of 777
For example:
chmod 777 somedatadir

Step 5. (Edit config.cgi)

The .zip archive will contain directories inside it. These directories are 'cgi', 'data' and 'html'

In the cgi directory there will be a file called config.cgi - Open it with a text editor. This file only consist of one line of text and is the only file you need to edit. Replace the existing path on the first line with the full server path to your 'data' directory.

If you don't know the full server path to your 'data' directory or don't know what a full server path is, contact your host and ask them for the full server path to your home directory. From there you should be able to determine the full server path to your 'data' directory.

Here is a sample email that you can use to ask your host for the full server path.

Step 6. (Copy the .cgi and .pm script files)

The .zip archive will contain directories inside it. These directories are 'cgi', 'data' and 'html'

Copy the files in the 'cgi' directory to your 'cgi-bin' directory, including config.cgi that you edited in the previous step.

In the cgi directory that came with the .zip archive there will be a subdirectory called 'admin'. Create this directory in your cgi-bin directory. Then copy the .cgi and .pm files into the 'admin' directory from the /cgi/admin directory which resides in the .zip installation archive.

Please note that the 'admin' directory always has to be a sub directory of the directory where the main program scripts resides.

For example:
You could place the files that came in the 'cgi' directory from the .zip archive in:
/home/yourdomain.com/www/cgi-bin/netsitebbs
and the admin cgi script files in
/home/yourdomain.com/www/cgi-bin/netsitebbs/admin

Step 7. (Set permissions of the .cgi and .pm script files)

Set the permissions of the .cgi and .pm files to the permission setting of 755.

7.1 How to set permissions from your ftp client/program:
Most FTP clients have this ability. Go to the cgi-bin directory where the main .cgi and .pm script files resides. Select the files that you just copied. In your FTP client there should be a menu item or button where you change the file attributes or file permissions. Set the permissions/attributes to 755. Then go to the admin directory, and select the files and also set these files to the permission setting of 755.

7.2 How to set permissions from telnet or SSH
If your host/server disallows permissions to be set from ftp, you might want to take this route.

Telnet/SSH into your hosting account/server and go to the cgi-bin directory where you copied the .cgi and .pm files. chmod 755 the files by issuing the following command from the command prompt:
chmod 755 *.cgi
and
chmod 755 *.pm

Do the same with the .cgi and .pm files residing in the admin directory.

Step 8. (Create the 'html' directory)

With the files/directories you extracted from the .zip archive there should have been a directory called 'html'.

On your hosting account/server create a directory called 'html' or whatever you want to call it. This directory has to be in your public html document tree. Your public html document tree is where you store the web pages of your web site.

Now you should have created the 'html' directory. Copy the contents of the 'html' directory you have extracted from the installation .zip archive to the 'html' directory you have created.

In the 'html' directory you have extracted, there should be sub directories. These subdirectories are called icons, user_images and user_imagesc

Create these subdirectories under the 'html' directory you have created on your hosting account/server. Also copy the contents (that was extracted from the .zip installation archive) of these directories to your hosting account/server.

Step 9. (Setting permissions for the 'html' directory)

Set the permission of the directory 'user_imagesc' that you have created on your host/server to 777. Refer to 4.1/4.2 above on how to set permissions on files and directories.

Step 10. (The setup interface)

Load setup.cgi in your browser and follow the instructions from there. setup.cgi is in the 'admin' directory you have created under your cgi-bin directory.

It should be located at, for example:
http://www.yourdomain.com/cgi-bin/sitenetbbs/admin/setup.cgi

Step 11. (Setup Completion)

After you have completed the setup with setup.cgi, SiteNet BBS will be up and running. Load admin.cgi in your browser to start creating forums.

 

1.3 Unix/Linux Installation Trouble Shooter

Have you set the correct permissions of the .cgi files?
They require permissions of 755 - See step 3 of the installation instructions.

Have you assigned the permissions of 777 to the 'data' directory?
The 'data' directory and it's contents requires the permission setting of 777.

Have you assigned the permissions of 777 to files inside the 'data' directory?
The 'data' directory and it's contents requires the permission setting of 777.

Does the sub directory called 'user_imagesc' in your 'html' directory have the correct permissions?
This directory should have permissions set to 777

 

1.4 Windows/NT Installation Instructions

Follow the steps below exactly as described and you should have SiteNet BBS serving you in a couple of minutes. Do the steps as you read through them.

Note that all example paths used in these installation instructions is fictional and only for example purposes. It may not apply to you.

Step 1. (Extract the .zip archive)

Extract the files with their directories that came in the .zip archive.

Step 2. (Set the path to perl in the .cgi and .pm script files)

Some Windows web servers, like Apache, requires that the first line in all scripts points to the perl program/interpreter on your host/server. If you are using Apache, open all .cgi and .pm script files and change the first line in the scripts. The first line needs to contain the full server path to your host's perl program/interpreter.

The .zip archive will contain directories inside it. These directories are 'cgi', 'data' and 'html'

Open the .cgi and .pm files located in the /cgi directory you have extracted with a text editor. A good text editor for this task is TextPad. You can get it here.

The first line in the scripts will read:
#!/usr/bin/perl

Change this to the path of Perl on your server or hosting account.

It should look something like this:
#!e:/perl/bin/perl

If you do not know this path, you will need to contact your host provider and ask them for the path to perl.

Here is a sample email that you can use to ask your host for the path to Perl

You will most likely not have to do this step if your web server is something other than Apache.

Step 3. (Create a 'data' directory on your host/server)

Create a directory on your server/host called 'data' or whatever you would like to name it. This directory will be used to store all settings and messages.

A good location for this directory is somewhere where the web server cannot access it. Another way of saying this, is to say that you need to create the 'data' directory somewhere where a visitor to your web site cannot access the contents of this directory.

This means that you must not place/create this directory in your cgi-bin or public HTML document directory.

A good place to place this directory would be for example:
c:/home/yourdomain.com/data
where your cgi-bin directory will reside in something like
c:/home/yourdomain.com/www/cgi-bin
and your public HTML directory in something like
c:/home/yourdomain.com/www

Step 4. (Copy files to the 'data' directory)

The .zip archive will contain directories inside it. These directories are 'cgi', 'data' and 'html'

Now copy the files inside the 'data' directory of the .zip archive to the 'data' directory you have just created.

Step 5. (Edit config.cgi)

The .zip archive will contain directories inside it. These directories are 'cgi', 'data' and 'html'

In the cgi directory there will be a file called config.cgi - Open it with a text editor. This file only consist of one line of text and is the only file you need to edit. Replace the existing path on the first line with the full server path to your 'data' directory.

If you don't know the full server path to your 'data' directory or don't know what a full server path is, contact your host and ask them for the full server path to your home directory. From there you should be able to determine the full server path to your 'data' directory.

Here is a sample email that you can use to ask your host for the full server path.

Step 6. (Set path to config.cgi in scripts)

Open all the .cgi and .pm files with something like textpad - Get it at http://www.textpad.com

Change the line that reads (Near the top):
  
#$cfile = "e:/full/server/path/to/config.cgi";

to

$cfile = "e:/full/server/path/to/config.cgi";

where e:/full/server/path/to/config.cgi needs to be changed to the full server path to where config.cgi is located on your host/server.

Step 7. (Copy the .cgi and .pm script files)

Copy the files in the 'cgi' directory to your 'cgi-bin' directory, including config.cgi that you edited in the previous step.

In the cgi directory that came with the .zip archive there will be a subdirectory called 'admin'. Create this directory in your cgi-bin directory. Then copy the .cgi and .pm files into the 'admin' directory from the /cgi/admin directory which resided in the .zip installation archive.

For example:
You could place the files that came in the 'cgi' directory from the .zip archive in:
c:/home/yourdomain.com/www/cgi-bin/netsitebbs
and the admin cgi script files in
c:/home/yourdomain.com/www/cgi-bin/netsitebbs/admin

Please note that the 'admin' directory always has to be a sub directory of the directory where the main program scripts resides.

Step 8. (Create the 'html' directory)

With the files/directories you extracted from the .zip archive there should have been a directory called 'html'.

On your hosting account/server create a directory called 'html' or whatever you want to call it. This directory has to be in your public html document tree. Your public html document tree is where you store the web pages of your web site.

Now you should have created the 'html' directory. Copy the contents of the 'html' directory you have extracted from the installation .zip archive to the 'html' directory you have created.

In the 'html' directory you have extracted, there should have been sub directories. These subdirectories are called icons, user_images and user_imagesc

Create these subdirectories under the 'html' directory you have created on your hosting account/server. Also copy the contents (that was extracted from the .zip installation archive) of these directories to your hosting account/server.

Step 9. (The setup interface)

Load setup.cgi in your browser and follow the instructions from there. setup.cgi is in the 'admin' directory you have created under your cgi-bin directory.

It should be located at, for example:
http://www.yourdomain.com/cgi-bin/sitenetbbs/admin/setup.cgi

Step 10. (Setup Completion)

After you have completed the setup with setup.cgi, SiteNet BBS will be up and running. Load admin.cgi in your browser to start creating forums.

 

1.5 Windows/NT Installation Trouble Shooter

Is the path to perl correct?
This path is the first line in all .cgi and .pm script files. When this is incorrect, internal server errors will usually occur. See Step 2 above for more information.

Is the path to you 'data' directory correct?
See Step 5 above for more information.

Is all the paths you provided in setup.cgi correct?

 

1.6 Enabling Search Engine Friendly URL's

SiteNet BBS enables you to make the topic and message URL's of your forum, search engine friendly so that the entire contents of your Forum can easily be crawled or spidered by search engines.

Requirements

To enable SiteNet BBS to display search engine friendly URL's you will need a host that runs the Apache web server with a module installed for it that is called Mod Rewrite. If your host is a linux or unix based host, then the module will likely already be installed. Your web server or hosting account will also need to be configured to use .htaccess files.

Setup

Step 1

Create a file called .htaccess that you will place in your public HTML directory with a text editor. Open your text editor and add the following lines to it:

RewriteEngine on
RewriteBase /

RewriteRule snbbsforumindex\.html$ \
/cgi-bin/netboard/netboard.cgi

RewriteRule snbbsgotoforum/([0-9]+),([0-9]+),([a-z]*) \
/cgi-bin/netboard/netboard.cgi?fid=$1&cid=$2&fct=$3

RewriteRule snbbsgotoforumpg/([0-9]+),([0-9]+),([0-9]+),([0-9]+),([a-z]*) \
/cgi-bin/netboard/netboard.cgi?st=$1&nd=$2&fid=$3&cid=$4&fct=$5

RewriteRule snbbsforumindex\.html$ /cgi-bin/netboard/netboard.cgi

RewriteRule snbbsforumtopic/([0-9]+),([0-9]+),([0-9]+),([0-9]+),([0-9]+),([0-9]) \
/cgi-bin/netboard/netboardr.cgi?fid=$1&cid=$2&tid=$3&pg=$4&sc=$5&x=$6

RewriteRule snbbsforumtopicpg/([0-9]+),([0-9]+),([0-9]+),([0-9]+),([0-9]+),([0-9]),([0-9])\
/cgi-bin/netboard/netboardr.cgi?fid=$1&cid=$2&tid=$3&st=$4&nd=$5&pg=$6&sc=$7

### end of file

The above instructs the Mod Rewrite module how it needs to rewrite your Forum URL's to be search engine friendly. Replace the path /cgi-bin/netboard/ in the lines above with the path to where netboardr.cgi and netboard.cgi resides on your host.

When you have added all the lines as explained above to the text file, save the text file with the file name '.htaccess'. Upload the file to your public HTML directory.

Step 2

First open netboard.cgi and netboardr.cgi with a unix compatible text editor like TextPad (http://www.textpad.com) - In both files near the top you will see a line reading:

$mod_rewrite_in_use = "N"; ## Y = Yes / N = No

Change it so that it looks like this in both files:

$mod_rewrite_in_use = "Y"; ## Y = Yes / N = No

After you have changed the files, upload the files to your cgi-bin directory to reflect the changes.

Step 3

From your web site link to your forums as follows:
http://www.yourdomain.com/snbbsforumindex.html
Replace yourdomain.com in the URL above with your real domain name.

Notes

If your host does not have the module Mod Rewrite installed and is not configured to use .htaccess then the above won't work. It might be a good idea to contact your host and ask them if they have the Module, Mod Rewrite installed and if their server is configured for the use of .htaccess files.

<< Previous Page
Index

Index
Sitenet BBS Home

Next Page >>
Upgrade Instructions

ffbotl.gif (1447 bytes)
Site Map | PowerSeek | Turbo Seek | ActivDesk | FM SiteSearch Pro | SiteNet BBS | Download Monitor Pro | More Products...
Support Desk | Community Forums | Affiliate Program | Contact us
ffbotr.gif (1456 bytes)