How To Update a BOARD18 WEB Site

From BOARD18 Project WIKI
Jump to navigation Jump to search

These instructions should work for any Upgrade that does not involve a database change.

How to update an existing BOARD18 web site using Linux

Method 1 For Small Changes

Please note that this method is deprecated and may soon be removed from this page.

1. Upload the relevant BOARD18 zip file to the server root directory.

2. Uncompress the zip file.

  
[myserver]$ unzip board18-x.x.x.zip

3. Move to the webroot directory of the uncompressed file.

[myserver]$ cd board18-x.x.x/webroot

4. As you can see the directory structure of webroot is identical to the website.

[myserver]$ ls ~/demo2.board18.org
access-denied.html  board18Map.php     board18New.php	favicon.ico  php
board18Admin.php    board18Market.php  board18View.php	images	     scripts
board18Main.php     board18Misc.php    favicon.gif	index.html   style
[myserver]$ ls
access-denied.html  board18Map.php     board18New.php	images	    scripts
board18Admin.php    board18Market.php  board18View.php	index.html  style
board18Main.php     board18Misc.php    favicon.ico	php

5. Now we will copy just the changed files to the website.

[myserver]$ cp -r -u -v * ~/demo2.board18.org
`board18Map.php' -> `/home/priceweb/demo2.board18.org/board18Map.php'
`scripts/board18Map1.js' -> `/home/priceweb/demo2.board18.org/scripts/board18Map1.js'
`scripts/board18Map2.js' -> `/home/priceweb/demo2.board18.org/scripts/board18Map2.js'
`style/board18Map.css' -> `/home/priceweb/demo2.board18.org/style/board18Map.css'

Replace ~/demo2.board18.org in the above examples with the path to your website's root directory.

6. Test the updated web site.

Method 2 For Large Changes

There is a shell script in the utility directory which can be used for large changes.

This script, called BOARD18update, will completely update all the pages and scripts of a board18 web site. And it will first create a backup of the site.

Perform the following steps for Method 2:

1. Upload the relevant BOARD18 zip file to the server root directory.

2. Uncompress the zip file.

  
[myserver]$ unzip board18-x.x.x.zip

3. Move to the existing utility directory.

[myserver]$ cd utility

4. Make sure that the BOARD18update and control.sh files in this utility directory contain the following comment:

# This is version 5 of this script.

If this is not true then replace these files with the ones in the board18-x.x.x/utility directory that you just unziped.

5. Before running the script, you must edit the control.sh file which is also found in the utility directory.
The three directory paths in control.sh must be correct or the web site being updated could be damaged.

[myserver]$ pico control.sh

6. Run the script.

  
[myserver]$ ./BOARD18update 

7. Test the updated web site.

How to update an existing BOARD18 web site using Windows

If you have a Windows environment please modify the above Linux instructions, test them and then enter them here.

How to update an existing BOARD18 web site using a MAC

If you have a MAC environment please modify the above Linux instructions, test them and then enter them here.