1) Obtain phpAdBoardProPro.zip
2) unzip it into the directory you want (best way is document root 'htdocs' or 'www')
3) Make sure your directory structure is like this:
phpAdBoardPro/
phpAdBoardPro/admin
phpAdBoardPro/conf (chmod: 777)
phpAdBoardPro/img
phpAdBoardPro/lib
phpAdBoardPro/languages
phpAdBoardPro/photoes (chmod: 777)
Attention! Befor running Install script you need to set permissions to make 'conf' directory and it's content files writable!
This involves using the CHMOD command. If you do not understand CHMOD, there are some resources and information listed at
http://www.eclecticpixels.com/tutorials/chmod/. CHMOD as follows:
chmod 777 conf (this is a directory)
chmod 777 all files in the conf directory
After the installation and final configuration you may chmod "conf" directory to 606 for security purposes.
Automatic Installation
Run install.php in your web browser and follow the instructions.
Manual Installation
==============================================================
Below instruction only for MySQL database backend.
For other databases backends see their manuals
==============================================================
4) Create a MySQL database (If you have an installed MySQL database and enough experinece in SQL
you may pass this step).
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:
4.1. On UNIX prompt write:
mysqladmin -uroot -p create YourDataBaseName
(enter MySQL root password)
4.2. On UNIX prompt write:
mysql -uroot -p
(enter MySQL root password)
4.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.
5) Create database table
There are two ways:
- From the command line for your operating system, type
% mysql YourDataBaseName < phpAdBoardPro.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 |
+----------------------------+
| pAB_resources |
| pAB_users |
+----------------------------+
To look at the table structure type
mysql> describe phpAdBoardPro;
- use phpMyAdmin or similar DataBase Web Administration tools to run the SQL requests from phpAdBoardPro.sql file
6) Make changes to the phpAdBoardPro/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
$epath="/usr/local/apache/htdocs"; //real path
$eurl="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.
7) Once all this has been done, you should protect the conf/conf.inc 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 conf subdir that contains:
<files conf.inc>
Order Deny,Allow
Deny From All
</files>
8) 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/phpAdBoardPro/cleanup.php
/*
Delete expired ads on 05.00 each day
/usr/local/bin/php - the real path of PHP
/usr/local/apache/htdocs/phpAdBoardPro/cleanup.php - the real path of cleanup script
*/
9) To customize page layout you may edit next two files in 'templetes' folder:
- templetes/header.inc
- templetes/footer.inc
You can customize any HTML tag in these files.
Warning ! Don't change <form > elements names and parameters.
|