diff --git a/wp-content/plugins/nextgen-gallery/admin/functions.php b/wp-content/plugins/nextgen-gallery/admin/functions.php
index 4f21872d34dc67ace729c699e4f24984cb93ccea..a2897dd2ecdceb54d18a7195526fdc7de84c86ed 100644
--- a/wp-content/plugins/nextgen-gallery/admin/functions.php
+++ b/wp-content/plugins/nextgen-gallery/admin/functions.php
@@ -2,7 +2,7 @@
 
 if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
 // Temporary file reservoir, which should exist and be property of www-data. Needed to bypass open_basedir
-define('NEXTGEN_TMP_FILES', '/opt/noblogs/tmp/');
+define('NEXTGEN_TMP_FILES', '/opt/noblogs/www/wp-content/tmp/');
 /**
  * nggAdmin - Class for admin operation
  *