Cloning an app is effortless on the Cloudways Platform. This guide explains how you can clone applications on either the same server or another server. You can do this to create different environments (dev, test, production) to integrate into your development workflow.
If you pair app cloning with our git deployment feature, you can build powerful and simple workflows.
Important
If you use a custom session path and encounter errors while cloning your application or creating a staging application. In that case, we recommend updating the session path to /home/hostname/application_name/public_html/var/sessions, as this directory "var/sessions" is excluded by default from cloning and staging creation processes to avoid any conflicts. Click here to learn more about updating the session path.
How to Clone the Application
Here are a few simple steps to clone the application.
Step# 1
First of all, log in to your Cloudways Platform with your credentials and select your target server where your desired application is deployed which you want to clone.
Now, click on the www icon located on the right-hand side of the server tab.
Select your target application from the list.
Next, click on the Grid icon located at the bottom right corner of the screen and then select Clone App/Create Staging.
Step# 2
Here, you need to select your destination server where you want your application to be cloned. You can go with the same server, a different server, or a new server, so choose your option from the drop-down and click Continue.
Important
If you are trying to make a staging application (staging environment), Click Here to read a comprehensive guide about staging applications.
The application cloning process will start shortly, and the time will depend on the amount of data your web application contains. You will see a notification once the application will be cloned.
Important
If you see any warning about asking you to upgrade PHP or MariaDB(Database) version to complete the cloning operation then you may follow this guide
That’s it! We hope this tutorial was helpful. If you need any help, then feel free to search your query on Cloudways Support Center or contact us via chat (Need a Hand > Send us a Message). Alternatively, you can also create a support ticket.