Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

crontab create folder not on domain context

General questions about VestaCP
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
hoanhdo
Posts: 2
Joined: Fri May 04, 2018 6:07 am

Os: CentOS 6x
Web: nginx + php-fpm
crontab create folder not on domain context
  • Quote

Post by hoanhdo » Wed Jan 08, 2020 3:36 am

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.
Top


Post Reply
  • Print view
1 post • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password