Which user for cron tasks ?
Hello,
I was trying to setup a cron task that needs to be run for a drupal website. The usual way to do it (not in a cpanel context) is to create the cron entry in the system user that is running the web server (httpd). In my distribution, the user is 'www-data'.
But since this is a cpanel administered server, the php files of the drupal website are in a directory that is owned by web5, not www-data, as it usually is, and is a member of group client1 (if that's relevant)
My question is : should I use the command line and add a cronjob for web5 ? or what's the appropriate way to this ?
-
I suggest you to add it through cPanel under Cronjob option so they will be added properly and at the right place. 0 -
Either as @andrew.n suggests or add as the web5 user if you're going to do this through crontab. 0 -
Thank you guys. How do I mark this as solved ? 0
Please sign in to leave a comment.
Comments
3 comments