# Installation - Shared Hosting

Follow the below steps carefully to install the QwikTest script in shared hosting. Your server must have PHP 7.4, MySQL 5.7.24 or higher, and Apache/NGINX.

1. Configure a domain or subdomain
2. Create a database
3. Upload script downloaded from CodeCanyon
4. Installation

See [Important Things to Remember](#important-things-to-remember) before installation.

#### Our Demo is powered by Digital Ocean VPS.

[![DigitalOcean Referral Badge](https://web-platforms.sfo2.cdn.digitaloceanspaces.com/WWW/Badge%201.svg)](https://www.digitalocean.com/?refcode=899d01009f04\&utm_campaign=Referral_Invite\&utm_medium=Referral_Program\&utm_source=badge)

See the below video for the installation process.

{% embed url="<https://youtu.be/2CvkuemIPnI>" %}

### Installation Process

#### Step 1

Create a domain or subdomain in the cPanel. Set root directory to `public_html/[DOMAIN_FOLDER]/public`&#x20;

![](https://3791649983-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mb1ofvkThROm6pwq71N%2F-Mf3EOnM2zMZU3seDPKS%2F-Mf3Qazwsu2x7iySW-tQ%2Fcreate-domain.jpg?alt=media\&token=792b9735-40ba-4801-8814-7074a5cbe765)

If you have only a single domain, then set the primary domain root directory to `public_html/public`

#### Step 2

Create a database and assign all privileges to the database user.

![](https://3791649983-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mb1ofvkThROm6pwq71N%2F-Mf3EOnM2zMZU3seDPKS%2F-Mf3Qvrt63jDIv5j-Uo_%2Fcreate-database.jpg?alt=media\&token=968a6e69-c204-48e3-9d49-ac11dfbc9347)

#### Step 3

* Download the zip file from CodeCanyon.
* Extract the zip file from your system.
* Navigate to **`Fresh Installation`** folder.
* Select the  **upload\_this.zip** file and upload it to the `public_html/[DOMAIN_FOLDER]` directory of your hosting.
* Extract the contents of the uploaded zip file to the same directory i.e `public_html/[DOMAIN_FOLDER]`
* Give 775 permission to the following directories.
  * storage/framework
  * storage/logs
  * bootstrap/cache

![](https://3791649983-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mb1ofvkThROm6pwq71N%2F-Mf3jAbqI0dw1Js-Ky6C%2F-Mf3jvxnxhhNelk0cg6J%2Fupload-script.jpg?alt=media\&token=c9e880b6-9830-4a38-9bf4-fd6e2a9b44b7)

#### Step 4

Then navigate to **yourdomain.com/install** on the browser and follow the instructions.

![](https://3791649983-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mb1ofvkThROm6pwq71N%2F-Mf3jAbqI0dw1Js-Ky6C%2F-Mf3k2RtC-o_5FvsYH69%2Finstallation-screen.jpg?alt=media\&token=588681ee-e8a0-44c0-a826-b14c071b0739)

#### Final Step

Finally, when you are on the installation success screen, don't close the browser window directly. Instead, you must hit the **Click here to exit** the button to complete the installation.&#x20;

![](https://3791649983-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mb1ofvkThROm6pwq71N%2F-Mf3jAbqI0dw1Js-Ky6C%2F-Mf3kP_ja5e7RkPbtPhL%2Fsuccess-screen.jpg?alt=media\&token=ee5876b1-9852-4cd3-b9cf-d248290be9be)

{% hint style="danger" %}
If the installation fails due to server issues, fix them and:&#x20;

1. Delete all the tables in the existing database or make a new database.
2. Delete the **storage/installed** file of the app in the sever
3. Replace the .env file on the server with the .env file from the downloaded script.
4. Finally, start the installation again by visiting **yourdomain.com/install**.
   {% endhint %}

**Important Things to Remember**

* QwikTest **CAN** only be installed on your main domain or subdomain. For example, **yourdomain.com** or **app.yourdomain.com.** It **CANNOT** be installed in the subdirectory path of your domain, for example,  **[www.yourdomain.com/my-app](http://www.yourdomain.com/my-app).**
* You should set the domain root directory to the app's **/public** directory, not the root directory. If you set it to the root directory, it won't work and will also expose the application's sensitive data.

### Installation Support

{% hint style="info" %}
Please raise a ticket on our support portal if you have any issues with the installation within the QwikTest application.
{% endhint %}

{% hint style="danger" %}
We cannot provide fixes that are related to your web hosting or server environment. Therefore, if your hosting or server environment is different than what is listed in the above section, you’ll need to determine if it will work before purchasing. Server setup and configuration are not in our scope of support.
{% endhint %}
