@JAY
Type of Task, choose script
Script Content
/www/server/php/73/bin/php /www/wwwroot/domain.com/core/cron.php

    a year later

    Hi aaPanel_Jose
    How about my script content?
    I tried add this script but my script not working.

      daydien789
      Manually click Execute to see if there are logs? Or try to restart the crond servicesystemctl restart crond

      a year later

      aaPanel_Jose How to execute the comand as a www user?
      I tried to define a cronjob for nextcloud but it was throwing a error on my server as
      ----------------------------------------------------------------------------
      Console has to be executed with the user that owns the file config/config.php
      Current user id: 0
      Owner id of config.php: 1001
      ----------------------------------------------------------------------------

        Ranjan_Ray
        Hi, you can use sudo su command to execute
        su - u username command
        sudo -u username command

        a year later
        17 days later

        aaP_conguyen6262
        Hi
        check whether the task format time is normal
        crontab -l

        If there is no error, it is recommended to try to reinstall cron, and then set a task for 1 minute to check whether it is running
        Debian:

        apt reinstall cron
        systemctl restart cron
        systemctl status cron
        systemctl enable cron

        Centos:

        yum reinstall crontabs 
        systemctl restart crond 
        systemctl status crond
        systemctl enable crond
          2 months later