Uploaded image for project: 'Moodle QA'
  1. Moodle QA
  2. MDLQA-16122 Moodle 4.0 QA
  3. MDLQA-16593

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

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        1. step 13.png
          step 13.png
          52 kB
        2. step 2.png
          step 2.png
          122 kB
        3. step 4.png
          step 4.png
          401 kB
        4. step 6.png
          step 6.png
          74 kB
        5. step 7.png
          step 7.png
          152 kB
        6. step 10 new.png
          step 10 new.png
          128 kB
        7. step 13 new.png
          step 13 new.png
          122 kB
        8. step 18 new.png
          step 18 new.png
          244 kB
        9. step 4 new.png
          step 4 new.png
          303 kB
        10. step 6 new.png
          step 6 new.png
          156 kB
        11. step 7 new.png
          step 7 new.png
          198 kB

        Issue Links

          Activity

            People

              mina Nicolas Martignoni
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: