This starts the update daemon as user http (the user apache is run by her):
Code: Select all
su -m http -c "(trap '' SIGHUP && /usr/bin/php /var/services/web/ttrss/update.php --daemon >> /var/log/ttrss_daemon.log 2>&1) &" 2> /dev/null
Substitute /var/services/web/ttrss with the path to your Tiny Tiny RSS installation.
The log file in /var/log/ttrss_daemon.log must be writable to http, so it should be created beforehand. Note that the daemon is very wordy, but adding --quiet to the options fixes this, see here.
Edit: Updated for DSM 5.