I'm having trouble setting up cron on owncloud (ubuntu 14.04 / OwnCloud 9.1.x vm). The default is to use an Ajax based method, but this is pretty unreliable.
I need to run cron.php as the same user that is running the webserver/apache. On all of the bitnami stacks this user is daemon.
To test cron.php I need to run it as daemon. I'm also supposed to add the necessary cron entry to daemon's crontab.
The problem is that in all bitnami stacks, daemon doesn't have a shell (nologin - obviously for security), and when logging in as bitnami, I can't just su to dameon and test run cron.php.
Almost everything I've found says that it's not a good idea to run apache as daemon. i.e. that you should run it as another user (eg. www-data, or whatever).
So I guess I have 2 questions:
1). How do run my cronjob as daemon - the same user that apache runs under?
2). Is it really a good idea to be running apache as daemon in the first place?
Thanks for you help.