L
L
lzy2020-09-03 13:43:00
Yii
lzy, 2020-09-03 13:43:00

How to run cron task in cpanel?

Hello, I created a working action in the controller. Located in the console/controllers/UserController.php folder. How to configure the launch of this task through cpanel (reg.ru).
Provider recommendation:
/usr/local/bin/ea-php99 /var/www/u0589983/domain_path/path/to/cron/script

Mine:
/usr/local/bin/ea-php54/var/www/u0589983/domain .com/console/controllers/UserController.php

The message comes in the mail:
/bin/bash: /usr/local/bin/ea-php54/var/www/u0589983/domain.com/console/controllers/UserController.php: Not a directory

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2020-09-03
@saboteur_kiev

So maybe you need this:
/var/www/u0589983/domain.com/console/controllers/UserController.php
or
/usr/local/bin/ea-php54 /var/www/u0589983/domain.com/console/controllers/UserController .php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question