The most common method of installing phpAdBoard is to grab the archive, unzip it somewhere and run through the code making all the changes you need. 
Here is the process: 
Obtain phpAdBoard.zip 
unzip it into the directory you want (best way is document root 'htdocs' or 'www') 
Make sure your directory structure is like this:
     board/
     board/admin
     board/conf
     board/img
     board/lib
     board/languages
     board/photoes

4) Create a MySQL database. The database needs a database-name, a username, and a password.
The database-name can be any name beginning with a letter, the username
should be your unix login name. The password must be different from all 
other passwords in your system for security reasons.

If you have root access to the MySQL server then you can create the
database following these instructions:

1. On UNIX prompt write:

      mysqladmin -uroot -p create YourDataBaseName
      (enter MySQL root password)
	

2. On UNIX prompt write:

      mysql -uroot -p
      (enter MySQL root password)
	

3. On MySQL prompt write:

      grant select, insert, update, create, alter, delete, drop
      on DATABASENAME.*
      to USERNAME@localhost
      identified by 'PASSWORD' ;
      quit
	

If you don't have root access then you have to ask the webmaster to
create a database for you. Just specify the database-name, username,
and password. Remember that the database password must be different from
your normal password.

4) Create database table
There is two way:
1. From the command line for your operating system, type 

	% mysql YourDataBaseName < board.sql
	
This will send the statements into the mysql client and create the table for you. To verify that this was done correctly, go into the mysql client and see. 

	%mysql YourDataBaseName
	

You should see 

	Welcome to the MySQL monitor. Commands end with ; or \g.
	Your MySQL connection id is 2 to server version: 3.22.32
	Type 'help' for help.
	mysql>


now type 
mysql> show tables;

and you should see the category table listed 

	+----------------------------+
	| Tables_in_YourDataBaseName |
	+----------------------------+
	| board                      |
	+----------------------------+


To look at the table structure type 
mysql> describe board;

OR
2. Simply run table_install.php

5) Make changes to the board/conf/conf.inc file. This file is well documented, so you should be able to pick out what you need to change fairly easily.


	########### MySQL DataBase Setting ####################
	$dbname = "yourDBName"; //DataBase Name
	$hostname = "mysql.yourdomain.comm:64366"; //Host Name:PORT
	$username = "yourDBUserName"; //DataBase Access UserName
	$password = "yourDBPassword"; //DataBase Access Password

	$path="/usr/local/apache/htdocs"; //real path

	$url="http://www.yourdomain.com"; //Your Site URL

	###### The Categories List  ########################
	$categories=array(
	"Goods", 
	"Real Estate", 
	"Job", 
	"Service", 
	"Action",
	"Miscellaneous" 
	);
	//edit or set up you Ad board Categories List

	############## Color configuration for the default HTML table layout 
	$design["tab_color"]="#d4d5c2"; //HTML Table background color tag setting 
	$design["tr_color"]="#E4E5D2"; //HTML Table <tr> tag background color setting 
	$design["td_color"]="white"; //HTML Table <td> tag background color setting 

	###### File Upload Control Setting  ########################
	$upload["size"]=70000; // Image file max size;
	$upload["width"]=500; // Image max width;
	$upload["height"]=500; // Image max height;
	$upload["type"]=array("gif","jpeg","jpg","png"); // Image mime type
	
	include("../languages/lang_eng.inc"); choose Interface Language

You may create your own language interface simply translating the message variables in the lang_eng.inc.

6) Once all this has been done, you should protect the config file (that contains
your login/password for db access). Look at your server documentation to find out
how to do this.
For the Apache server, you'll need to create an ".htaccess" file (without quotes) in
the config subdir that contains:

      <files config.inc>
          Order Deny,Allow
          Deny From All
      </files>


7. You will need to setup the crontab to run ads cleanup procedure by ad duration date.


 crontab -e
 0 5 * * * /usr/local/bin/php /usr/local/apache/htdocs/board/cleanup.php

/* 
Delete expired ads on 05.00 each day 
/usr/local/bin/php - the real path of PHP
/usr/local/apache/htdocs/board/cleanup.php - the real path of cleanup script
*/


