-
I tried couple of times & still its not working, I added the code to cron job using 'crontab -e ' command
in Terminal by connecting EC2 Ubantu server.
I am bit confused of the code, can u tell me if below code is correct
MAILTO={email address}
* * * * * /opt/bitnami/apache2/bin -q /opt/bitnami/apache2/htdocs/network/UNA-v.9.0.0/periodic/crone.php
I found 2 bin folders, 1 in bitnami/PHP/Bin and other in Bitnami/Apache2/bin.
Which one should I use here?
Its Bitnami LAMP 5.6.37-2, Ubuntu 16.04.5 LTS
It will be great if you can help me with as I am stuck with this since last 2 weeks and cannot continue my projet.
Thanks in advance.
-
If you operate with crontab command then I may suggest that you work under Shell access. Then you may try to execute command like:
whereis php
to get actual path to your PHP. I guess in your case it would be bitnami/PHP/Bin/php something like this. But Then you need to write this path to your Cron Jobs. Regarding your UNA path:
network/UNA-v.9.0.0/periodic/crone.php
You may place UNA files to the network path, or call the folder simpler like una. Also, our cron file has the name "cron.php"
-
-
Добрый день.
Не могу настроить планировщих заданий (Cron.php). Подскажите пожалуйста где настраивается планировщик? И куда втавить запись вида :MAILTO=myemail@mysite.com * * * * * cd /home/user/public_html/dolphin/periodic; /usr/local/bin/php -q cron.php
- но подобного пути у меня нет.
Мой путь будет такой: cd /var/www/pharm-sprout.ru/periodic; /usr/bin/php -q cron.php но при выполнении получаю ошибку:
PHP Fatal error: Uncaught Error: Call to undefined function mb_internal_encoding() in /var/www/pharm-sprout.ru/inc/header.inc.php:26
Stack trace:
#0 /var/www/pharm-sprout.ru/periodic/cron.php(14): require_once()
#1 {main}
thrown in /var/www/pharm-sprout.ru/inc/header.inc.php on line 26
У меня такая же проблема с модулями. Все модули находятся в режиме ожидания загрузки. На сервере я вижу загруженные файлы модулей в архиве, но в студии или в скаченных они не появляются.
Соответственно и почта у меня не работает из-за него (не отправляются письма при регистрации).
-