Installation of ApPHP Hotel Site (version 2.0.0 or above)

(for version 2.0.0 or above)

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


[top]

Step 1. Uncompressing downloaded file.


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


[top]

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}/
Uncomment in .htaccess following line of code, if you need to add PHP5 handler. # AddHandler application/x-httpd-php5 .php


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


[top]

Step 5. Setting up access permissions.


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

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


[top]

Step 6. Deleting install.php file.


After successful installation you will get an appropriate message and warning about removing of install.php file. For security reasons, please delete installation files immediately.


Congratulations, you now have ApPHP Hotel Site installed!