Answers.Body: <p>Can you use the <a href="https://docs.civicrm.org/sysadmin/en/latest/setup/jobs/#cv" rel="nofollow noreferrer"><code>cv</code> method</a>? That works well.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-21T20:32:54.460Z
Answers.Text: No, I don't think so. I don't find it on Joomla! and I don't find how to write the cron task. And now with J!4, the usual cron task doesn't work anymore.
Answers.UserDisplayName: Alain Rihs
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-20T17:31:10.050Z
Answers.LastActivityDate: 2023-11-20T17:31:10.050Z
Answers.UserDisplayName: Aidan
Body: <p>For PHP version reason, I move Joomla! &amp; CiviCRM from example.org/civicrm to civicrm.example.org.
  I changed all civicrm.settings.php in admin and frontend folders and I emptied the cache, template_c and log folder and CIVICRM_SITE_KEY is always the same.
  Everything works fine and cron URL could be fetch (blank screen on the web but Status: 200 after crontab run)
  So, no mailing is sent automatically. But I can send it when I run the task manually ?!</p>
  <p>On CiviCRM status, I can read that no cron is running. But at tihs time, I really don't know where to find to resolve this issue.</p>
  <p>I tried both <a href="https://example.org/administrator/components/com_civicrm/civicrm/bin/cron.php?name=" rel="nofollow noreferrer">https://example.org/administrator/components/com_civicrm/civicrm/bin/cron.php?name=</a>&amp;pass=&amp;key= and the command wget -O - -q -t 1 'https://example.org/administrator/components/com_civicrm/civicrm/bin/cron.php?name=&amp;pass=&amp;key=', results are OK but CiviCRM doesn't recognize those execution.</p>
  <p>I also tried to change PHP version (7.4, 8.0 and 8.1), without any change. I only have a warning about session when I display PHP errors.</p>
  <p>On this thread <a href="https://civicrm.stackexchange.com/questions/27661/for-some-reason-cron-doesnt-work-on-cms-joomla">For some reason, cron doesn&#39;t work. On CMS joomla</a>, I note that the cron user must be a super-admin, but I tested and it only work once : now, there is an error status with cron in CiviCRM.</p>
  
Tags: <joomla><cron><migration>
Title: Cron doesn't work after moving CiviCRM to sudomain
ThreadText: # Cron doesn't work after moving CiviCRM to sudomain
  
  (Asked by: username_0 on 2023-11-20)
  
  For PHP version reason, I move Joomla! & CiviCRM from example.org/civicrm to civicrm.example.org.
  I changed all civicrm.settings.php in admin and frontend folders and I emptied the cache, template\_c and log folder and CIVICRM\_SITE\_KEY is always the same.
  Everything works fine and cron URL could be fetch (blank screen on the web but Status: 200 after crontab run)
  So, no mailing is sent automatically. But I can send it when I run the task manually ?!
  
  On CiviCRM status, I can read that no cron is running. But at tihs time, I really don't know where to find to resolve this issue.
  
  I tried both <https://example.org/administrator/components/com_civicrm/civicrm/bin/cron.php?name=>&pass=&key= and the command wget -O - -q -t 1 'https://example.org/administrator/components/com\_civicrm/civicrm/bin/cron.php?name=&pass=&key=', results are OK but CiviCRM doesn't recognize those execution.
  
  I also tried to change PHP version (7.4, 8.0 and 8.1), without any change. I only have a warning about session when I display PHP errors.
  
  On this thread [For some reason, cron doesn't work. On CMS joomla](https://civicrm.stackexchange.com/questions/27661/for-some-reason-cron-doesnt-work-on-cms-joomla), I note that the cron user must be a super-admin, but I tested and it only work once : now, there is an error status with cron in CiviCRM.
  
  **Tags:** joomla, cron, migration
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-11-20. Score: 0
  
  Can you use the [`cv` method](https://docs.civicrm.org/sysadmin/en/latest/setup/jobs/#cv)? That works well.
  
  > **Comments:**
  > **username_0**: No, I don't think so. I don't find it on Joomla! and I don't find how to write the cron task. And now with J!4, the usual cron task doesn't work anymore.  
  
  ---
  
  