Drupal

Drush Cron on Dreamhost

Submitted by Darren Oh on Mon, 02/08/2016 - 10:19

I set up Dreamhost cron jobs to run drush cron for two different sites running Drupal 8.0.3. One of the cron jobs worked, but the other failed with a syntax error. Drupal 8 requires PHP 5.5.9 or later, and the default version of PHP for one of the sites was 5.4.42. Changing the default PHP version in .bash_profile and .bashrc did not fix the error.

Tags

Protecting private files in Drupal 8

Submitted by Darren Oh on Thu, 02/04/2016 - 14:32

If you add a private files directory after installing Drupal 8.0.3, you will get a warning on the status page saying it is not fully protected and to see https://www.drupal.org/SA-CORE-2013-003 for information about how to protect it with an .htaccess file. The message shows up even if the directory is not Web-accessible. Ignore it. The .htaccess file will be created automatically after caches are rebuilt.

Tags