Override Drupal File Paths

Last modified: 
Sunday, March 29th, 2015

How to override Drupal 7 files paths in settings.php

// Override file path settings
$conf['file_public_path'] = 'sites/default/files';
$conf['file_private_path'] = 'sites/default/files-private';
$conf['file_temporary_path'] = '/tmp/mysite';


The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.