Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-16759 Moodle 4.1 QA
  3. MDLQA-17209

CLONE - An administrator can set a Path to PHP CLI and run scheduled tasks via the UI

XMLWordPrintable

      Note: Please mention in a comment which type of server you are using, Windows or Linux.

      1. Log in as an admin and go to Site administration > Server > System paths.
      2. Set "Path to PHP CLI" to the path to your PHP executable.
        • On Linux, you can use the value returned by the command "which php" on your terminal.
        • On Windows, you can use the value returned by the command "where php" on your terminal.
      3. Go to Site administration > Server > Tasks > Scheduled tasks.
      4. Confirm that there is a "Run now" button for most (if not all) of the tasks.
      5. Click "Run now" for the "Forum mailings and maintenance jobs" task.
      6. On the confirmation prompt, confirm to run the task.
      7. Confirm that the task executes successfully without any errors (except maybe when the outgoing email settings have not been properly configured and that Moodle can't send email messages. This is fine. The important thing is that the task executes okay.)
      8. Go back to the Scheduled tasks page.
      9. Open another browser tab and go to Site administration > Server > System paths
      10. Remove the value in "Path to PHP CLI".
      11. Back on the Scheduled tasks page, click on "Run now" in any of the tasks listed.
      12. On the confirmation prompt, confirm to run the task.
      13. Confirm that you get an error that the path to the PHP CLI can't be found.
      14. Click on "Continue".
      15. Confirm that you are redirected to the System paths page.
      16. Leave the Path to PHP CLI setting blank.
      17. Go back to the scheduled tasks page.
      18. Confirm that the "Run now" links are not shown in any of the scheduled tasks.

        1. 1_boost_MDLQA-17209.png
          1_boost_MDLQA-17209.png
          108 kB
        2. 1_classic_MDLQA-17209.png
          1_classic_MDLQA-17209.png
          145 kB
        3. 2_classic_MDLQA-17209.png
          2_classic_MDLQA-17209.png
          31 kB
        4. 3_MDLQA-17209.png
          3_MDLQA-17209.png
          45 kB
        5. 4_MDLQA-17209.png
          4_MDLQA-17209.png
          91 kB
        6. 5_boost_MDLQA-17209.png
          5_boost_MDLQA-17209.png
          104 kB
        7. 5_classic_MDLQA-17209.png
          5_classic_MDLQA-17209.png
          141 kB

            johnedwardg.pedregosa John Edward Pedregosa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.