## Installation of ApPHP Business Directory (v2.0.0 or above)

- 1. Installation of ApPHP Business Directory
  - 1.1 Step 1. Uncompressing downloaded file.
  - 1.2 Step 2. Uploading files.
  - 1.3 Step 3. Creating database.
  - 1.4 Step 4. Settings and access rights.
  - 1.5 Step 5. Running install.php file.
  - 1.6 Step 6. Deleting installation files.

### Installation of ApPHP Business Directory

A new installation of ApPHP Business Directory is a very straight forward process:
[top]

### Step 1. Uncompressing downloaded file.

Uncompress the ApPHP Business Directory version x.x.x script archive. The archive will create a directory called "PHPBD_xxx".

[top]

### Step 2. Uploading files.

Upload content of this folder (all files and directories it includes) to your document root (public_html, www, httpdocs etc.) or your business directory using FTP. Pay attention to DON'T use the capital letters in the name of the folder (for Linux users).
For example:

    public_html/

or

    public_html/{business-directory}/

[top]

### Step 3. Creating database.

Using your hosting Control Panel, phpMyAdmin or another tool, create your database and user, and assign that user to the database. Write down the name of the database, username, and password for the site installation procedure.

[top]

### Step 4. Settings and access rights.

4.1. Check access permissions to images/ and tmp/ directories. You have to set up write permissions (755) to them. Also check if you have write access to include/ folder. If not, set manually 755 or 777 rights (depends on your system settings) to this directory and return them back after the installation is completed.
4.2. If you run this script on IIS, you have to allow rewrite mode for Windows. To do this, open the httpd.conf file and uncomment the following lines (remove the trailing #s):

    #LoadModule rewrite_module modules/mod_rewrite.so
    #AddModule mod_rewrite.c

If you're running this script on Apache with a web hosting company you have mod_rewrite already enabled in most of cases. How to enable mod_rewrite on your localhost read here: http://httpd.apache.org/docs/current/rewrite/

[top]

### Step 5. Running install.php file.

Now you can run install.php file. To do this, open a browser and type in Address Bar

    http://{www.mydomain.com}/install.php

or

    http://{www.mydomain.com}/{business-directory}/install.php

Follow instructions on the screen. You will be asked to enter: database host, database name, username and password. Also you need to enter admin username and admin password, that will be used to get access to administration area of the site.

[top]

### Step 6. Deleting installation files.

After successful installation you will get an appropriate message and warning to remove install.php file and install/ directory. For security reasons, please delete them immediately.

Congratulations, you now have ApPHP Business Directory installed!