# Files Setup

Before proceeding with the installation, you need to extract the script contents onto the directory that will serve your domain.

This can be done via cPanel’s File Manager, FTP, or command line.

#### Upload and extract the archive

- 1\. If you’re using cPanel, navigate to **File Manager** and upload your `.zip` file containing the script.
- 2\. Once uploaded, **right-click** and choose **Extract** to unpack all contents.
- 3\. Copy the contents of the `Script` folder onto the `public_html` directory of the domain your are about to use.
- 4\. Make sure you also copy any hidden files (e.g., `.env`, `.htaccess`).

#### Configure file permissions

In order for the script to work properly, set the following folders to `CHMOD 755`: `vendor`, `storage`, `bootstrap`.

<Info>
For more info on setting permissions, see:<br />
• [cPanel - Update file or folder permissions](https://docs.cpanel.net/cpanel/files/file-manager/#update-file-or-folder-permissions)<br />
• [Plesk - Setting File and Directory Access Permissions](https://docs.plesk.com/en-US/obsidian/customer-guide/websites-and-domains/website-content/setting-file-and-directory-access-permissions.70738)<br />
• For CLI usage: `chmod -R 755 directory` or check your hosting panel for file permission options.
</Info>

#### Changing the public directory

Configure your web server’s document root to point to the `public` directory of the software. For example, if you uploaded the code into `example.com`, update the doc root to `example.com/public`.

If your hosting provider doesn’t allow changing your DocumentRoot, you can temporarily rename `.htaccess.sample` to `.htaccess`. Use this only as a **temporary solution**.

<Info>
For more info on changing the Document Root:<br />
• [cPanel - Update document Root for add-on domains](https://support.cpanel.net/hc/en-us/articles/360057802373-How-can-I-change-the-document-root-for-an-Addon-Domain-or-Subdomain)<br />
• [Defining a Custom Document Root](https://docs.plesk.com/en-US/obsidian/administrator-guide/77500/)<br />
• For a VPS or custom server, edit `DocumentRoot` in your site’s *virtual host* configuration.
</Info>
