> For the complete documentation index, see [llms.txt](https://docs.hamz.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hamz.dev/hamz-cad/installation.md).

# Installation

## Downloading

Once you've purchased the product, head over to [**store.hamz.dev**](https://store.hamz.dev), in the top right click your Discord ID then you'll be presented with the products you own. Click the **Download** button next to Hamz CAD.

## Choosing a Domain

You now have to decide if you want to access your CAD via your main domain, or a sub-domain.

A main domain would be **hamzcad.com**

A sub-domain would be **cad.hamzcad.com**

If you want to use the main domain, please continue with the instructions below. However, if you want to use a sub-domain, pause here, and [click here](https://docs.hamz.dev/#sub-domain-setup) to learn how to set up a sub-domain.

<details>

<summary>PHP Configuration Requirements</summary>

For this product, you must use:&#x20;

* PHP Version 7.4 (If you are using the In-Game UI, use PHP 7.2)
* PHP `output_buffering` set to 4096

</details>

## Uploading the Files

Next, head into your Web Hosting control panel.

Under the **Files** tab, select **File Manager**.

<figure><img src="/files/HM861ddY2Sj3H794X98r" alt=""><figcaption></figcaption></figure>

Once the **File Manager** has opened in a separate tab, select **public\_html**

If you wish to use a sub-domain, select the appropriate folder otherwise click **Upload** in the menu at the top.

<figure><img src="/files/Tw9nZ1gRp8BQnccoXcj6" alt=""><figcaption></figcaption></figure>

Select the .zip folder that you previously downloaded from the store.

## Extracting the Files

Once the files have been uploaded, right-click on the new .zip folder and click **Extract**.

<figure><img src="/files/je3Y5U7io9cn0w5gDnuk" alt=""><figcaption></figcaption></figure>

Once you've accepted the following Extract prompts, you'll then be presented with two folders. One is your .zip file, and one is the folder you just extracted; you can now delete the .zip folder.

## File Management

Enter the "HAMZ CAD V3" folder, and then enter the "WEB FILES" folder.

Click "Select All" from the above menu, and drag them all into the correct folder in the structure on the left. Example: **public\_html**

<figure><img src="/files/5ykIlRTxCNPF9eJZUgaX" alt=""><figcaption></figcaption></figure>

## MySQL Database

You now need to create a database and user for the CAD system to run on.&#x20;

Head back into cPanel, and look for **MySQL Databases**

Under the **New Database**, enter a unique name for the CAD database. Example: **cad**

<figure><img src="/files/LVTnm9pDCFfleD9ImbOd" alt=""><figcaption></figcaption></figure>

Once the name is chosen, select **Create Database**.

Next, you'll need to make a MySQL Use&#x72;**.** Scroll down on the same page to the **Add New User** section. Again, choose a unique name for the username. Example: **admin**

Use cPanel to generate a unique password, and save it to a notepad document.

<figure><img src="/files/dq8AKfiULef3oGePAHFa" alt=""><figcaption></figcaption></figure>

Once you've got the password, saved, click **Use Password** which will then fill out the form fully, and hit **Create User**.

<figure><img src="/files/huSXiOF0sqtmZvxKtuFq" alt=""><figcaption></figcaption></figure>

Next, we need to add the permissions to the user to that database we've just created. At the bottom of the page select the **User** and **Database** and then click **Add**.

<figure><img src="/files/ux429B1ivNnUKDHnaDjf" alt=""><figcaption></figcaption></figure>

Ensure that **All Privileges** are selected, so that it has full permissions to that database. Once completed click **Make Changes**.

<figure><img src="/files/NIOX0I0bOUtglbnOCms4" alt=""><figcaption></figcaption></figure>

## Database Import

Now that we have the database created, we're going to want to import the database that comes with the CAD system to that database we've just made.&#x20;

Head back into cPanel, but this time select **PHPMyAdmin**.

<figure><img src="/files/UiW6s2qQxge2zLkW2R4Y" alt=""><figcaption></figcaption></figure>

Select the database you've just created from the left menu.

<figure><img src="/files/glLp9poqESRfZTzAOMmZ" alt=""><figcaption></figcaption></figure>

Select **Import** from the menu bar

<figure><img src="/files/465FYrwXKwB09wadRD4s" alt=""><figcaption></figcaption></figure>

Select the **.mysql** file that was in the downloaded folder.

<figure><img src="/files/1ooaf1A62FRt7BZ8HbUl" alt=""><figcaption></figcaption></figure>

Lastly, click **Import**.&#x20;
