S
S
SvizzZzy2021-11-05 15:58:24
ISPmanager
SvizzZzy, 2021-11-05 15:58:24

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

1 answer(s)
A
Alexander Karabanov, 2021-11-05
@SvizzZzy

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 question

Ask a Question

731 491 924 answers to any question