Skip to content

Instantly share code, notes, and snippets.

@cdnsteve
Created December 27, 2013 22:21
Show Gist options
  • Save cdnsteve/8153465 to your computer and use it in GitHub Desktop.
Save cdnsteve/8153465 to your computer and use it in GitHub Desktop.
RE: Drupal Error on Appfog Warning: tempnam(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): Just add this snippet to settings.php without changing core. Flush your cache and then you're good to go!
/**
* Force location of /tmp for Appfog
*/
$conf['file_temporary_path'] = realpath($_SERVER['DOCUMENT_ROOT'].'/../tmp');
/* END */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment