Knowledge Base - Articles

Posted 20 Jul 2017

Since CloudFlare acts as a reverse proxy, the IP address in Apache logs will show the CloudFlare IP address instead of the visitor's true IP address. To restore the true IP address of the visitor:

  1. Install and enable the CloudFlare module
  2. Add the following code to your settings.php file:
if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) {  $_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"];}
Posted 18 Jul 2017

When attempting to ssh into your server, you might encounter an error like the following:

Permission denied (publickey). Couldn't read packet: Connection reset by peer

If you see the error above, answer the following questions to determine the issue:

Posted 03 Jul 2017

In this article, we are going to cover the Drupal 8 configuration lifecycle. We will start by making a simple configuration change in our local environment, then export the change to code, and eventually deploy it to different environments on Acquia Cloud.

Posted 03 Jul 2017

By default, Drupal 8 uses the sync configuration directory type for Configuration Management. This type defines the configuration directory located under the path/to/docroot/sites/sitename/files/config_HASH path. Acquia Cloud introduces an additional configuration directory type named vcs to allow you to track Configuration Management changes under version control.

Posted 03 Jul 2017

To use Drupal 8 trusted host patterns feature with Acquia Cloud, just add all the possible domain names used for the site to settings.php:

$settings['trusted_host_patterns'] = array(
  '^www\.example\.com$',
  '^.+\.acquia-sites.com$',
  '^exsite.dev.dd$',
);
Posted 30 Jun 2017

Acquia’s Remote Administration service provides proactive security updates for customers. We use a streamlined 3 step process to help get these updates onto production quickly, keeping sites secure.

To facilitate this process customers are required to test updates to ensure that they do not break functionality on their site. All testing of updates is the responsibility of the customer, however the RA team can assist with troubleshooting when required.

Posted 30 Jun 2017

If part of your web application's functionality relies on HTTP requests made from your web servers to an external web service (commonly known as external calls), the performance of your site's server may be impacted by a performance issue with this external service. If you expect that a problem with an external web service is causing performance issues on your site, you can use the following methods to identify these misbehaving services:

Posted 29 Jun 2017

Acquia Drupal was a Drupal 7 distribution that packaged several recommended modules together to make setup of new sites easier. Acquia Drupal has been deprecated in favor of Lightning (https://docs.acquia.com/lightning, https://www.drupal.org/project/lightning). Fortunately, uninstalling the Acquia Profile is a simple process.

Create a new development branch locally using git.

Posted 27 Jun 2017

When analyzing your site's logs to investigate "temporarily unavailable" errors on your Acquia Cloud site, you may encounter an error message like the one below in your php-errors.log:

Posted 26 Jun 2017

The RA environment does not include a memcache service. As a result, you may encounter unexpected site behaviors or drush may return errors similar to:

WD memcache: Failed to connect to memcache server: 127.0.0.1:11211     [error]

This is usually the result of a memcache statement in your settings.php that is not properly enclosed in the suggested if statement (see: Using Memcached). For example, if your memcached statement looks like:

Contact supportStill need assistance? Contact Acquia Support