ApPHP Hotel Site :: Installation

# Installation of ApPHP ApPHP Hotel Site

- 1. Installation of ApPHP Hotel Site
  - 1.1 Step 1. Uncompressing downloaded file.
  - 1.2 Step 2. Uploading files.
  - 1.3 Step 3. Creating database.
  - 1.4 Step 4. Setting up access permissions.
  - 1.5 Step 5. Running install.php file.
  - 1.6 Step 6. Deleting installation files.

### Installation of ApPHP Hotel Site

A new installation of ApPHP Hotel Site is a very straight forward process:

### Step 1. Uncompressing downloaded file.

Uncompress the ApPHP Hotel Site script archive. The archive will create a directory called "PHPHS_xxx".

### Step 2. Uploading files.

Upload content of this folder (all files and sub-directories it includes) to your document root (public_html, www, httpdocs etc.) or your hotel site 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/{hotel-site directory}/

### 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.

### Step 4. Setting up access permissions.

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/

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

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

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

or

    http://{www.mydomain.com}/{hotel-site 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.

### 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 Hotel Site installed!