Difference between revisions of "How To Create a BOARD18 WEB Site"

From BOARD18 Project WIKI
Jump to navigation Jump to search
(Initial version of this page)
 
(finalize and remove stub designation.)
Line 6: Line 6:


===Perform these steps on your local Linux PC===
===Perform these steps on your local Linux PC===
# Extract board18/board18 repository from Gitorious.
* Extract board18/board18 repository from Gitorious.
# Extract board18/gamebox repository from Gitorious.
* Extract board18/gamebox repository from Gitorious.
# Start command line.
* Start command line.
# cd to BOARD18 directory.
* cd to BOARD18 directory.
# Enter on command line:  
* Enter on command line:  
<pre>  
<pre>  
rm ~/board18.zip
rm ~/board18.zip
Line 20: Line 20:
zip ~/utility.zip *.*
zip ~/utility.zip *.*
</pre>
</pre>
# cd to GAMEBOX directory.
* cd to GAMEBOX directory.
# Enter on command line:
* Enter on command line:
<pre>
<pre>
cd boxes
cd boxes
Line 27: Line 27:
zip -r ~/utility.zip control
zip -r ~/utility.zip control
</pre>
</pre>
# Using FTP, move the 2 zip files to your web server.
* Using FTP, move the 2 zip files to your web server.


===Perform these steps on your Linux web server===
===Perform these steps on your Linux web server===
# Extract board18.zip into your web root directory.  
* Extract board18.zip into your web root directory.  
# Create a utility directory in your user directory (~).
* Create a utility directory in your user directory (~).
# Extract utility.zip into this new directory.
* Extract utility.zip into this new directory.
# cd to your web root directory.
* cd to your web root directory.
# Edit the php/config.php file.
* Edit the php/config.php file.
## Change DB_HOST only if your DB server is different from your web server.
*# Change DB_HOST only if your DB server is different from your web server.
## Change DB_DATABASE to the name you will give to your BOARD18 database.
*# Change DB_DATABASE to the name you will give to your BOARD18 database.
## You can also change the database user ID and password if you want.
*# You can also change the database user ID and password if you want.
## Save the edit session.
*# Save the edit session.
# Remember the above values for use below.
* Remember the above values for use when creating the database.


===Create the BOARD18 DataBase===
===Create the BOARD18 DataBase===
The BOARD18 database must be created and loaded with game boxes before this web sit can be used. <br>See the [[How To Create a BOARD18 Database]] page for advice on performing this function.


==How to create a BOARD18 web site using Windows==
==How to create a BOARD18 web site using Windows==
Line 48: Line 49:
==How to create a BOARD18 web site using a Mac==
==How to create a 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.'''
'''If you have a mac environment please modify the above Linux instructions, test them and then enter them here.'''
{{Stub}}


[[Category:HowTo]]
[[Category:HowTo]]

Revision as of 14:39, 12 July 2013

How to create a BOARD18 web site using Linux

These instructions assume that you already have a server environment running Apache with PHP version 5.3 or later and MySQL version 5.5 or later.

Perform these steps on your local Linux PC

  • Extract board18/board18 repository from Gitorious.
  • Extract board18/gamebox repository from Gitorious.
  • Start command line.
  • cd to BOARD18 directory.
  • Enter on command line:
 
rm ~/board18.zip
rm ~/utility.zip
zip ~/board18.zip *.html *.php 
zip -r ~/board18.zip php scripts style
zip ~/board18.zip images/*.*
cd utility
zip ~/utility.zip *.*
  • cd to GAMEBOX directory.
  • Enter on command line:
cd boxes
zip -r ~/board18.zip images
zip -r ~/utility.zip control
  • Using FTP, move the 2 zip files to your web server.

Perform these steps on your Linux web server

  • Extract board18.zip into your web root directory.
  • Create a utility directory in your user directory (~).
  • Extract utility.zip into this new directory.
  • cd to your web root directory.
  • Edit the php/config.php file.
    1. Change DB_HOST only if your DB server is different from your web server.
    2. Change DB_DATABASE to the name you will give to your BOARD18 database.
    3. You can also change the database user ID and password if you want.
    4. Save the edit session.
  • Remember the above values for use when creating the database.

Create the BOARD18 DataBase

The BOARD18 database must be created and loaded with game boxes before this web sit can be used.
See the How To Create a BOARD18 Database page for advice on performing this function.

How to create a 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 create a 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.