Index: trunk/DataCheck/Setup/setup.fact.lp.data
===================================================================
--- trunk/DataCheck/Setup/setup.fact.lp.data	(revision 18683)
+++ trunk/DataCheck/Setup/setup.fact.lp.data	(revision 18694)
@@ -53,6 +53,7 @@
 # dependencies of steps
 steps=$mars/resources/steps_fact.rc
-# file with db information
+# files with db information
 sqlrc=$mars/sql.rc
+sqlpw=/home/fact/.mysql.pw
 
 
Index: trunk/DataCheck/Setup/setup.fact.lp.gate
===================================================================
--- trunk/DataCheck/Setup/setup.fact.lp.gate	(revision 18683)
+++ trunk/DataCheck/Setup/setup.fact.lp.gate	(revision 18694)
@@ -12,11 +12,23 @@
 # set only variables which are needed for the scripts running on this machine
 
+# software
+export mars=/users/fact/SW.automatic.processing/Mars.svn.2014.05.26
+
 # logging and setup
-logpath=/users/fact/logs.automatic.processing/autologs
+user=`whoami`
+if [ "$user" == "www-data" ]
+then 
+   # processes called from the web
+   logpath=/home/factwww/logs.automatic.processing/autologs
+   # file with db information
+   sqlrc=/home/fact/sql.rc
+   sqlpw=/home/fact/.mysql.pw
+else
+   # normal processes called from the commandline or cron
+   logpath=/users/fact/logs.automatic.processing/autologs
+   # file with db information
+   sqlrc=$mars/sql.rc
+   sqlpw=/users/fact/.mysql.pw
+fi
 runlogpath=/users/fact/logs.automatic.processing/autologs
 
-export mars=/users/fact/SW.automatic.processing/Mars.svn.2014.05.26
-
-# file with db information
-sqlrc=$mars/sql.rc
-
