crontab create folder not on domain context
crontab create folder not on domain context
Hi all.
I have a php web with yii framework.
I create a cronjob
/usr/bin/php -q /home/<my_user>/web/<my_domain>/public_html/yii defer >> /home/<my_user>/web/<my_domain>/public_html/runtime/logs/cron-errors.txt
I want my cronjob to create folder with name upload/yyyy/mm/dd , example /home/<my_user>/web/<my_domain>/public_html/web/upload/2020/01/01
but folder upload/yyyy/mm/dd is created in /home/<my_user>/web not in /home/<my_user>/web/<my_domain>/public_html.
How i can set environment or variable to create folder in /home/<my_user>/web/<my_domain>/public_html/web.
Thanks.
I have a php web with yii framework.
I create a cronjob
/usr/bin/php -q /home/<my_user>/web/<my_domain>/public_html/yii defer >> /home/<my_user>/web/<my_domain>/public_html/runtime/logs/cron-errors.txt
I want my cronjob to create folder with name upload/yyyy/mm/dd , example /home/<my_user>/web/<my_domain>/public_html/web/upload/2020/01/01
but folder upload/yyyy/mm/dd is created in /home/<my_user>/web not in /home/<my_user>/web/<my_domain>/public_html.
How i can set environment or variable to create folder in /home/<my_user>/web/<my_domain>/public_html/web.
Thanks.