How to Deploy Custom PHP Websites From Git Repository? [xCloud Tutorial]

Step-by-step guide to deploying a PHP website from Git using xCloud. You'll log into the dashboard, set up a custom PHP site, configure the PHP version and webroot, connect your Git repository with an SSH key, and watch the deployment complete in real time.
Chapters
Hello everyone. Today we'll show you how to Deploy a custom PHP website from your Git repository with xCloud hosting. Let's get started. First, log into your xCloud dashboard. Then click on the New Site button, choose your server and hit the Next button. Next, go to the Custom PHP tab. From the Dashboard menu, click on Clone a Get Repository to begin creating your custom PHP site. Then choose your destination server. You can either stick with the default or select another. From the dropdown, click the Next button, add your source site URL, and if you're migrating to a new domain, you can set that here too. For this tutorial, we'll use a demo site on a staging domain. Select that and then click Next. Now it's time to configure your site settings. Choose your PHP version, set your site users, and most importantly, define the webroot, the folder that contains your index PHP file. If your files are inside a folder like the public HTML file, make sure to update the webroot to that folder. Now you can create a new database. Add your existing database and you can proceed without creating a database. Here we are going with the Create database in Server option. Once you click on it, your database creating process will be started and you will get the database credentials. You can copy them to use them further and click on the Next button. Add your git repository, URL and branch. To access the git, URL and branch name, go to your Git repository and click on the dropdown button of the Code button. From here, go to the SSH tab and copy the URL of the git repository. Then find the branch name and go Back to the xCloud dashboard. Here, enter the copied URL and branch name in the dedicated fields. Scroll down a little bit and copy the below public key and go to the Get Dashboard. From here, go to the Settings tab from the Navigation menu. Next, find Deploy keys on the right sidebar. Now click on the Add Deploy key button. Then give a title of the key and paste the copied code into the key field and hit on the Add key button. Back in Xcloud, click Next, then hit Start to begin the deployment. You'll see a progress bar as your site is migrated. Once it's done, you'll be redirected to your site dashboard. And just like that, your custom PHP site is live. And that's how easy it is to deploy custom PHP apps using xCloud from your git repository. Thanks for watching. If you enjoyed this tutorial, give us a thumbs up. And don't forget to like share and subscribe for more tutorials and tips. Happy hosting.
More from M

How to Deploy EmDash CMS in One Click on xCloud: A Fast, Lightweight WordPress Alternative

Self-Host OpenPanel in One Click on xCloud: A Privacy-Friendly Google Analytics Alternative

xCloud September 2026 Release Notes: Site Security Pro, AI Caching, Docker Backups & More | xCloud

xCloud August 2026 Recap: App-First Deployment, 250+ One-Click Apps & DeepSeek Harness Hosting

Deploy Vaultwarden Password Managed on xCloud (Self-Hosted Open Source Password Manager)





