Drupal Management on AccuWeb.Cloud

Drupal Management on AccuWeb.Cloud

Drupal is a popular content management system (CMS) that enables users to build and manage websites with ease.

AccuWeb.Cloud provides a straightforward platform for deploying and managing Drupal environments, ensuring high performance and reliability for your web applications.

This guide covers the steps to install, back up, and restore your Drupal application on AccuWeb.Cloud.

1. Installing Drupal

Step 1. From the marketplace, navigate to Drupal from the content management option and click on install.

Select Drupal

Step 2. Select the region, you can also enter the environment name of your choice. Click on install.

Required Configuration

Step 3. It will take some time to prepare and deploy the environment.

Package is being installed

Step 4. The dialogue box will be displayed upon successful deployment. Click on ‘open in browser’.

Open in Browser

Step 5. In case ‘SSL Service Unavailable’ error, change ‘https’ to ‘http’ in the URL.

SSL not Included

Step 6. You will receive the login credentials in your email.

Log in Credentials

Step 7. Log in using the credentials received in the email.

Log inStep 8. The account is ready to use after you log in.

Drupal Account

2. importing and Exporting Your Environment

Whether you’re upgrading, migrating, or just rearranging your resources, exporting your old environment and importing it into a new environment on AccuWeb.Cloud is a crucial step for guaranteeing smooth transitions.

You can guarantee that your processes run smoothly by taking careful control of these steps and maintaining data integrity and application functionality.

Step 1. Now to export your environment, click on settings. In Settings, navigate to the export tab and click on export.

SettingsStep 2. Click on export in the dialogue box, as shown below.

Export Environment

Step 3. You will see a JSON file created for your environment. Click on it, to save it to your local system.

Save the JSON file with your name of choice, and click on save.

  • Now to import the file, go to the import button in your dashboard.

Import

Step 4. Now click on the local file and then browse to select the JSON file you want to import. Select your file and click on import.

Local File

Step 5. Name your imported environment, and select the region for your environment on install.

Install

A dialogue box will be displayed as soon as your environment is being

One of the most important steps in ensuring continuity and reducing downtime on AccuWeb.Cloud is exporting your old environment and importing it into a new one.

You may guarantee a seamless transfer with exporting your environment configuration and then importing it into the new configuration.

With this strategy, you may migrate or upgrade your environment in an efficient and safe manner while still maintaining the functionality and settings of your application.

3. Backup and Restore for Drupal(Files and Database)

Creating backups and restoring your Drupal application on AccuWeb.Cloud is crucial for data safety and quick recovery from any issues.

This involves securely backing up your website’s files and database, ensuring that your data is safe and can be easily restored.

By following a few straightforward steps, you can protect your Drupal site from data loss and downtime, ensuring it remains available and intact.

Step 1. Taking backup of your files from your environment and restoring it to another environment:

In your main environment, navigate to the directory where your files are stored. For eg: our files are stored in var/www/webroot/ROOT.

File Location

Step 2. Now, click on the web SSH of the application server of your main environment.

Web SSH

Step 3. Navigate to the directory where your files are stored and whose bawant to keep.

For eg: we want to take backup of root files then:

  • cd /var/www/webroot
  • zip -r backup.zip ./

Root Files Backup Location

Step 4. Now to see if your zip file is ready, type ‘ls’ again.

Verify Zip File Is Ready or Not

Step 5. Now click on Config on the main environment.

Config File

Step 6. Navigate to the directory where your zip file is stored. Click on the settings button and then click on download, to download the file.

Download the File

Step 7. Now to restore your files to another environment, navigate to your second environment and click on config.

Step 8. Here, we use the Drupal backup environment which is the same environment we imported before.

Config File

Step 9. Now, select the path where you want to restore the files. For eg: we are restoring files in var/www/webroot.

Path to Restore File

Step 10. Then click on the settings button and click on upload to upload your zip file.

Upload the Zip File

Step 11. Select the file and then click on upload.

Upload The File

Step 12. You can see ‘backup.zip’ is uploaded to our environment.

Uploaded to the Environment

Step13.  Now, click on web SSH on the application server of your backup environment.

Web SSH

Step 14. Navigate to the directory where your zip file is uploaded in order to unzip the files.

For eg: we will unzip the files inside the webroot folder.

  • cd /var/www/webroot
  • ls
  • unzip backup.zip

Unzip File

Step 15. While installing, type ‘A’ to replace the entire ROOT folder with the new ROOT folder we are uploading.

Replace with New Folder

Step 16. You can also check whether your files are restored by going to config, and then navigating to where your files are unzipped and check whether all your files are restored or not.

Verify Restored File

Step 17. From config, navigate setting.php file located at:


var/www/webroot/ROOT/sites/default

Setting.php File

Step 18. When you scroll to the bottom of the file, you’ll see the trusted host pattern is defined using a regular expression that depends on your file name.

Since we’ve backed up the file in another environment (Drupal backup environment here), we need to update the environment. However, this file currently lacks permission to write or update.

Update File Permissions

Step 19. Navigate to ‘Web SSH’ on your environment.

Web SSH

Step 20. Navigate to the directory where your settings.php is saved.

For eg: we will unzip the files inside the webroot folder.

  • cd /var/www/webroot/ROOT/sites/default
  • ls
  • chmod +rw settings.php

Step 21. The last command enables permission to update the file.

Unzip the File

Step 22. Now, again navigate to settings.php and change the environment name to the name of your current environment. Save the changes.

Change Environment Name

Step 23. Now, click on ‘open in browser’

Open in Browser

Step 24. Now, Drupal is ready to use. Click on ‘log in’.

Drupal Dashboard

Step 3. Taking a backup of the database from your environment and restoring it to a database of another environment

From the marketplace, purchase the backup storage service for the backup of the database.

Backup Storage

Step 4. Name the backup storage as per your choice and click on install.

Rename Backup Storage

Step 5. You can see the backup storage node is set up successfully.

Backup Storage Node Created

Step 6. Now click on add-ons in the database section of your main environment.

Add-Ons

Step 7. Install the backup storage add-on from the list.

Install Backup Storage Add-On

Step 8. Now you can choose which backup environment you want for this particular backup.

Step 9. Enter the database credentials you receive from the email. And customize the backup settings as per your requirement.

Backup Credentials

Step 10. After configuring the backup settings, click on Backup Now to take the backup.

Backup Now

Step 11. You will receive a dialogue box for the confirmation of the same.

Confirming Backup

Step 12. Now click on add-ons for your second environment, where you want to restore the previously backed-up data.

Restore Environment Add-On

Step 13. Again configure the settings as per your requirement.

Configure Database

Step 14. Now click on restore, to restore the previously backed-up data.

Restore

Step 15. Select the data which you want to restore.

Select Data

Step 16. You will get a confirmation dialogue box for the same. Click on yes and the data will be restored.

Confirm Restoring

Backing up and restoring your Drupal application on AccuWeb.Cloud involves a few simple steps.

By securely accessing the server, compressing and backing up your files, and using modules to export and import the database, you ensure your website can be quickly recovered if needed.

This process helps maintain the availability and integrity of your Drupal site, protecting it from data loss and downtime.

Save $100 in the next
5:00 minutes?

Register Here