# Installation

Once you download installation files after purchase, you just need to add **/public** to your domain's "Document Root". path.

{% hint style="danger" %}
**NO SUPPORT FOR THE LOCAL SERVER**
{% endhint %}

![](https://3724123745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLnaVMokZcDHzlHB5xHYM%2Fuploads%2F7PCKMwVl8qRWgrFRBCDo%2Fimage.png?alt=media\&token=a993a6eb-a180-4080-91c6-0b76447c3779)

Suppose In the above image **codehas.xyz** is your domain, you are going to create a subdomain which will be **helpdesk.codehas.xyz** and the **Document Root** will be **"helpdesk.codehas.xyz"**.Here for application needs to index form directly **"/public"**. so simply add or append just `/public` in document root as shown in the image below.

![](https://3724123745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLnaVMokZcDHzlHB5xHYM%2Fuploads%2Fybt0Pta5eeg5PHu3bWCm%2Fimage.png?alt=media\&token=addc787e-164a-4b5d-9e11-77d074493e5a)

{% hint style="danger" %}
**Make sure that you have recursively permitted (read, write, execute  777 - R) your root directory that includes or contains application files to be indexed by the virtual host, etc. The application files are actually pre-permitted but for the installation on the locale systems like Windows or Mac or Linux-based web servers (Laragon, Valet or wamp, etc), it needs to revise the permissions because after the system changes the permissions for application files on extractions from the zip.**

**For Mac/Linux:***`sudo chmod 777 - R /your_directory_or_folder_path`*

**For Windows (7/8/10 etc)**

1. Right-click on the directory, go to Properties
2. Security tab, Advanced.
3. Permissions tab, Change Permissions...
4. Add...
5. Advanced...
6. Click Find Now, then find and click on "Everyone", click OK
7. Click OK
8. "Everyone" should now show up in the list, with "Read & execute" permissions
9. Check the box for "Replace all child object permissions with inheritable permissions from this object"
10. Click OK. That should recursively give read access to "Everyone"
    {% endhint %}

{% hint style="info" %}

**Note:** This is an example for a subdomain to understand the document root path index, same as document root should index in the case of the main domain.

You can skip this recommended method (explained above) by creating just one file,

create a file (.htaccess) on the root directory of the application after uploading and extracting then write the following lines inside .htaccess file.

File content for  (with the name of **.htaccess**)

```
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
```

{% endhint %}

then hit create to a subdomain,

**Follow step by step:**

* Copy/Upload the folder and files to your web server using **cPanel** or FTP.
* If you are installing in a subfolder, please make sure there is no space in folder names.
* CreateMysql database, database user, and grant all permission to use this database.

{% hint style="info" %}
let's see a common way to [create a MySQL database](https://support.hostinger.com/en/articles/1583542-how-can-i-create-a-new-mysql-database) and read the more common information-related[ databases](https://support.hostinger.com/en/collections/944793-mysql-databases).&#x20;
{% endhint %}

* Open the `http://yourdomain.com/install.php`
* Before installing the system will check the required list - If there is an issue with the checklist You will need to fix it first to proceed to the next step

![](https://3724123745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLnaVMokZcDHzlHB5xHYM%2Fuploads%2FEeWkejbmjMfXXCl19ah3%2Fimage.png?alt=media\&token=c2942a92-0cf9-44de-b2c2-697179d8b6a4)

![](https://3724123745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLnaVMokZcDHzlHB5xHYM%2Fuploads%2F57qi2RaVsdOIiIjg5Hln%2Fimage.png?alt=media\&token=88cae4ea-dae7-4063-97ec-5143969cb686)

The Installer will make sure about the required extensions are installed or not. If all required extensions are installed fill in your server credentials, and database information and hit begin to install.

{% hint style="warning" %}
If your filled database credentials are correct installer will run and install. if everything goes smoothly,  you will be redirected to the login page (use the default log detail to log in).
{% endhint %}

![](https://3724123745-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLnaVMokZcDHzlHB5xHYM%2Fuploads%2FtDfAar5iyf8pjzQP3svU%2Fimage.png?alt=media\&token=3349a04b-76da-472f-bcf9-6d420097a1f9)

**Default Login:**

* **For Admin:** `admin@admin.com`
* **For Agent :** `agent@user.com`
* **For Customer :** `user@user.com`

#### Password for all: `12345678`

{% hint style="danger" %}
Log in by using the above default credential, and don't forget to change your email/password from the user management
{% endhint %}

{% hint style="info" %}
if you have any issues while the installation process feels free to contact item support. This author's response time can be up to **2 business days**
{% endhint %}

{% hint style="info" %}
**Are you looking for a customized version?**

We can provide you with a customized version with your desired features and functions. please feel free to contact us at <mark style="color:blue;"><info.codehas@gmail.com></mark>
{% endhint %}
