Deploying your code or website to <a href="https://www.hostpapa.com/" target="_blank">HostPapa</a> is straightforward with DeployHQ.

**Important:** HostPapa's shared hosting plans do not include SSH access. If you're on a shared plan, you'll need to use FTP. For SSH/SFTP connectivity, you'll need a HostPapa VPS plan.

Firstly, you'll need to set up your DeployHQ project, then connect to your HostPapa server.

## Setting up your project

Head to the **Projects** screen in DeployHQ, then click the **New Project** button to get started.

You'll be prompted to enter a name for your project, then select where your repository is hosted.

{screenshot: 9}

Next, click **Create project** and you'll be taken to a screen where you can log in with your repository hosting account to authorise access and then choose your repository.

* [Adding a Bitbucket repository](Article: #17)
* [Adding a Codebase repository](Article: #19)
* [Adding a GitHub repository](Article: #21)
* [Adding a GitLab repository](Article: #23)
* [Adding a repository manually](Article: #25)

## Setting up HostPapa

Once you've configured your repository, you'll need to connect to your HostPapa server.

Head to **Servers & Groups** in DeployHQ, and click the **New Server** button.

### Shared hosting (FTP)

HostPapa shared hosting does not support SSH or SFTP. Choose **FTP** as the protocol.

Enter the following details:

- **Hostname**: Your server's hostname (found in your welcome email or cPanel under **Server Information**)
- **Username**: Your cPanel username
- **Password**: Your cPanel password
- **Port**: `21`

### VPS hosting (SSH/SFTP)

HostPapa VPS plans include full SSH access. Choose **SSH/SFTP** as the protocol.

Enter the following details:

- **Hostname**: Your VPS IP address (shown in the HostPapa dashboard)
- **Username**: `root` (or the cPanel username if WHM/cPanel is installed)
- **Port**: `22`

For SSH key authentication on VPS plans, add DeployHQ's public key to your server's `~/.ssh/authorized_keys` file.

### Deployment path

For both shared and VPS hosting with cPanel:

- **Primary domain**: `/home/yourusername/public_html/`
- **Addon domain**: `/home/yourusername/public_html/addondomain.com/`

For WordPress theme deployments, append the path to the theme directory.

Under **Deployment options**, you can enable automatic deployments and set a **Deployment subdirectory** if needed.

Click **Create Server** to save, then proceed to your first deployment.

## Run your first deployment

By default, DeployHQ will upload your entire repository on the first deployment, since there's no previously deployed commit to compare against.

If your files are already on the server and up to date with the latest commit, you can skip that initial upload:

* [Don't deploy your whole repository on the first deployment](Article: #129)

Otherwise, follow this guide to start your first deployment — after the first run, only changed files will be uploaded:

* [Running your first deployment](Article: #43)

That's it! You've now set up automated deployments to your HostPapa server.

## Further reading

* Compile assets with the [Build pipeline](Article: #301)
* Run commands on your server with [SSH commands](Article: #57)
* Prevent certain files from uploading using [Excluded files](https://www.deployhq.com/support/excluded-files)
* Keep sensitive config out of your repository using [Config files](Article: #47)
* Notify your team and integrate with other services via [Integrations](Article: #327)

----------

_Need help with your deployment? Check out our [documentation](https://www.deployhq.com/support) or [contact our support team](https://www.deployhq.com/contact) for assistance._