Installation

Installation of PHPTRAVELS is very simple, Just follow these steps below and kickstart your travel business:

Before you proceed to instalaltion. please make sure you have already linux based server with cpanel installed. 

Step 1. Download compressed file
Login to your client area and download the latest version of PHPTRAVELS in your computer.


Step 2. Upload the downloaded archive
Upload content of this folder (Including all files and subdirectories) to your documentroot (public_html, www, httpdocs etc.) or your hotel script directory using FTP, cpanel or any of your hosting panels.
Note: Do not use the capital letters for the name of the folder (for Linux users), for example:
public_html/
or
public_html/{hotel-booking directory}/


Step 3. Create 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
To setup permissions write 755 or 777 to folder ( Uploads ) and file ) database.php ).
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 installation process
Now you can start installation process by typing your domain name ’/install’ e.x
(www.yourdomain.com/insta)
or
http://{www.mydomain.com}/{application-directory}/install
Following the instructions you will be required to enter a few details which are as follows: Database host, Database name, Username and password, beside these things you will be providing another username and password for the ‘Admin’ account to access administration area of your site.


Step 6. Deleting installation files
After when you have successfully installed this software, Delete the ( install ) directory located on root of your website to avoid any security issues.


For Redhat Linux Family:

  • Verify mod_rewrite is active, be sure /etc/httpd/conf/httpd.conf has the following parameter:

AllowOverride All

  • Verify if SELinux is active (best practice) with 'sestatus'. If it is enforced, add the following policy:

semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html(/.*)?"

  •  Apply the SELinux policies:

`restorecon -Rv /var/www/html`

Where /var/www/html is DocumentRoot


Congratulations, You have successfully installed PHPTRAVELS!