Introducing Cloudways Community Forum. Start Discussions and Get Instant Help From Cloudways Community. JOIN NOW

How to Install and Configure Let’s Encrypt SSL Certificate on Your Drupal SiteApril 7, 2016


In this KB

  • Installing Let’s Encrypt SSL certificate on Drupal
  • Update Drupal’s Setting.php
  • Resetting permissions
  • Apply changes in the htaccess file to configure Let’s Encrypt


Step 1: Go to Application Management

Log into the Cloudways Platform with your credentials. Select your desired Drupal application after clicking on Applications in the top menu bar.

Application Management Drupal


Step 2: SSL Certificate

Click on the SSL Certificate section under the Application Management area. Enter the email address and the domain for which you want to install the certificate. You can also add domains here. Click on Install Certificate once done.

Install ssl

Wait for the certificate to install.

Certificate installing

Once installed, flick the switch to Enable under Auto Renewal. Then, click on Renew Now.


Step 4: Update Drupal’s Setting.php

Now, access your application via SSH. Once connected, type following command to access your site’s settings.php:

Type following command to edit settings.php:

Find the line $base_url = 'http://yoursiteurl';  and comment it out. When done press ESC and then enter  :wq!  to save and exit the editor.


Step 5: Reset Permissions

Now, go to the Application Settings section under the Application Management area.  Select the Reset Permissions option and click on Reset to reset the permissions.

Reset permissions

Step 6: Configure htaccess File

To make your Drupal site work with Let’s Encrypt, below are the changes required in the htaccess file.

This line:

Swapped by this line:

And, this line:

Swapped by this line:

That’s it! Once you have made the above changes in your htaccess file, your LE SSL installation should run very smoothly. As always, let the support team know if you need any assistance via Live Chat or support ticket.

Have Questions? Ask From Our Helpful Community

One Response

  1. Paul Driver says:

    This modification only applies to Drupal 7 as it is already present in Drupal 8.

    The change should be applied before requesting the let’s encrypt certificate.

Still need help? Our support team is waiting to help you. Ask them now