Installation of uHotelBooking

A new installation of uHotelBooking is a very straight forward process:

Step 1. Uncompressing downloaded file.

Uncompress the uHotelBooking script archive. The archive will create a directory called "uHotelBooking_XYZ" (or PHPUHB_XYZ), where XYZ - is a number of current version.

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 booking script 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/{hotel-booking 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/
#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:

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://{}/{hotel-booking 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 uHotelBooking installed!