Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-65446

CLI install doesn't use provided default admin email address

XMLWordPrintable

    • MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
    • MOODLE_35_STABLE, MOODLE_36_STABLE
    • MDL-65446-master
    • Hide

      Use default email

      1. If you have Moodle installed in your instance, uninstall it (though you may want to copy the contents of config.php somewhere else for reference later).
      2. Create an empty database on your DB server. Take note of this database's name.
      3. Install Moodle using the command line install script and provide the --adminemail flag
        • e.g. php admin/cli/install.php --adminemail=admin@example.com
      4. Fill in each prompt in during the install process with correct values (you can check with the values in your old config.php) until you get to the prompt for the admin email address. You should see admin@example.com in brackets as the default value. Just hit "enter" to confirm you want to use the default.
      5. Finish the installation
      6. Log in to the newly installed Moodle site using the admin account
      7. CONFIRM that you are not prompted to add an email address after you've logged in
      8. View the admin user's profile page
      9. CONFIRM that admin@example.com is set as their email address

      Specify email

      1. Repeat the steps from the "Use default email" test. However, when prompted for the admin email address, specify one from the command line (e.g. "realadminemail@example.com") rather than simply hitting enter to accept the default and confirm the specified email address is the admin's email address.
      Show
      Use default email If you have Moodle installed in your instance, uninstall it (though you may want to copy the contents of config.php somewhere else for reference later). Create an empty database on your DB server. Take note of this database's name. Install Moodle using the command line install script and provide the --adminemail flag e.g. php admin/cli/install.php --adminemail=admin@example.com Fill in each prompt in during the install process with correct values (you can check with the values in your old config.php) until you get to the prompt for the admin email address. You should see admin@example.com in brackets as the default value. Just hit "enter" to confirm you want to use the default. Finish the installation Log in to the newly installed Moodle site using the admin account CONFIRM that you are not prompted to add an email address after you've logged in View the admin user's profile page CONFIRM that admin@example.com is set as their email address Specify email Repeat the steps from the "Use default email" test. However, when prompted for the admin email address, specify one from the command line (e.g. " realadminemail@example.com ") rather than simply hitting enter to accept the default and confirm the specified email address is the admin's email address.

      The CLI installer (admin/cli/install.php) allows the user to specify a default admin email address using the --adminemail option however it isn't used as the default value if the script is run in interactive mode and the user provides no other input.

      The install continues successfully however the admin is prompted to add their email address when they first log in to Moodle.

            ryanwyllie Ryan Wyllie
            ryanwyllie Ryan Wyllie
            Amaia Anabitarte Amaia Anabitarte
            Jun Pataleta Jun Pataleta
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 45 minutes
                3h 45m

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