Thread: www-data run process as different user
hello, i'm new these forums i'm not sure right place topic.
so, question/topic thing is:
have php script runs on apache2 web server (www-data).
script, want launch process stays alive time, parent script keeps on going. think need run command 'at' put process on queue, , script can continue , finish, without waiting process stop. seems need run 'at' command different user, because www-data stops 'atd' process. i'm not sure that. know how happen?
there several things can do:
1: change user apache runs - fine if web service needs 1 user
nano /etc/apache2/envvars
2: rather changing user, make use of suphp php run owner/group of php script (mod_php needs removed enabled modules)
3: perhaps best way , safest use webpage create todo list in database , cron script run every minute required user - if there job, , delete entry database.
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [all variants] www-data run process as different user
Ubuntu
Comments
Post a Comment