Deploying to VPSBG with DeployHQ
Deploying to your Wordpress site hosted with VPSBG is simple with DeployHQ. This guide will walk you through the process.
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. Next, click Create project and you'll be taken to a screen where you can log in with your repository hosting account to authorize access and then choose your repository.
Repository Links:
- Adding a Bitbucket repository
- Adding a Codebase repository
- Adding a GitHub repository
- Adding a GitLab repository
- Adding a repository manually
Setting up your VPSBG server
Once you've configured your repository, you'll need to connect to your VPSBG server. Head to Servers & Groups, and click the New Server button at the top of the screen.
Start by entering a name, and choosing SSH/SFTP as the protocol.
To find your SSH credentials:
- Log into your VPSBG Client Area
- Navigate to "Services" or "Servers" section
- Select your specific server
- Go to "SSH Access" or "Server Details"
- View or reset SSH credentials
Important VPSBG SSH Access Notes:
- SSH access is standard for VPSBG Servers
- Steps to enable SSH:
- Log into VPSBG Client Area
- Check server firewall settings
- Ensure SSH (port 22) is allowed
- Configure root or user access
- Use SSH keys for enhanced security
- Two-factor authentication recommended
Typical VPSBG Server Formats:
- Server Instance:
xx.xx.xx.xx
(IP address) - Hostname:
your-server-name.vpsbg.eu
You can use an SSH key instead of a password by taking the SSH key in your DeployHQ server configuration page and pasting it in your VPSBG server's ~/.ssh/authorized_keys
.
Connection Troubleshooting:
- Verify firewall allows SSH
- Confirm correct IP or hostname
- Ensure you're using the correct username (typically
root
or your custom username) - Check network security settings
- Validate credentials in VPSBG client area
Typical Wordpress Path:
- Standard Deployment:
/var/www/yourdomain/
- WordPress Specific:
/var/www/yourdomain/wordpress/
- Web Root:
/var/www/yourdomain/htdocs/
Within Deployment options, you can choose to automatically deploy your server and specify a Deployment subdirectory if needed.
Run your first deployment
By default, DeployHQ will upload the whole repository to your server on the first deployment. Helpful Deployment Guides:
Further reading
DeployHQ features to enhance your Wordpress deployments:
- Compiling assets with the Build pipeline
- Running server commands with SSH commands
- Excluded files
- Config files
- Integrations
Want to learn more about deployment or Wordpress? Check out our documentation or contact our support team for assistance.