Answer the question
In order to leave comments, you need to log in
How to run cron in ispmanager not as root?
There is a site whose php scripts are executed on behalf of a specific user.
But there is also a cron that runs the scripts of this site as root, which ultimately leads to problems with the rights to files and directories created in sections of the site from root.
Command, for example:
/opt/php80/bin/php /var/www/username/data/www/site.com/artisan schedule:run >> /dev/null 2>&1
How to run this command as a specific user instead of root ?
Answer the question
In order to leave comments, you need to log in
So after all, the user has his own CRONTAB configured directly from the panel in the appropriate section. Look carefully.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question