Install moodle through CLI

Source: Internet
Author: User
Tags administrator password

Install moodle through CLI

 

Prerequisites: Preparations for moodle have been completed.

1) databases (and Users)

2) moodledata directory

3) source code and site configuration

 

Installation Process

Open the terminal, or remotely connect to the server through putty or xshell:

1. Run the moodle command to install the script.

 

2. Select a language

As shown in, select the installation language, which is also the site's default language. You can add other language support after installation. Select the default input en or press enter to avoid unknown issues.

3. directory permission

By default, press Enter.

 

4. site address

That is, the access URL address of moodle, using the IP address or domain name

 

5. Data Directory (moodledata)

Enter the actual location of the moodledata directory on the server, that is, the moodle directory used to store files uploaded by users.

 

6. Select the database driver

As prompted, the Optional options are mysqli and mariadb, which are mysqli. That is, how PHP connects to/operates databases.

 

7. Database Host

That is, the server where the database is located, which can be an IP address or domain name. The file environment is installed on the local machine, that is, localhost (Domain Name) or 127.0.0.1 (IP)

 

8. Database Name

That is, the name of the database used by moodle. It is recommended that the database be empty.

 

9. Table prefix

Default database table prefix, which can be customized.

 

10. Database Port

The MySQL database port is 3306, And the Oracle database is 1521. Set this parameter based on the actual situation.

 

11. database username

That is, users who have the permissions to operate the moodle database can use the root user or create separately. The document environment is a separate user, User name: moodledemo, password: moodledemo

 

12. Database User Password

Enter the password of the user to manage the moodle database.

 

13. Full site name

That is, the full name of the site. After moodle is installed, the administrator can modify it in website management. Here is only a demonstration.

 

14. Website abbreviation

Same as above, that is, site abbreviation. After moodle is installed, the administrator can modify it in website management. Here is only a demonstration.

 

15. administrator user password

Enter the administrator password.

 

16. Administrator email

Enter the Administrator email address, not the real email address.

 

17. upgrade key

Used for site upgrade

 

18. Copyright Notice

Prompt whether you agree to the moodle copyright and agreement. Enter y to agree.

 

Now, the basic configuration of moodle has been completed.

Start installation ......

Moodle databases and modules

 

There are many modules to install, which are not shown here. If you are fully prepared, no problem exists here.

 

The installation is complete. You can now access the website through web access.

If the site has a white page, you can change the moodle directory permission to 0777 to solve the problem.

 

Select the site language:

1) log on as an administrator

Username: Admin by default

Password: the password entered in the preceding configuration is 666666.

 

2) Select Language Pack Management

On the site administration> language packs page, locate "zh_cn" in the option bar on the right, and click "Install selected language packs" under it ".

 

3) Select the Display language

After the selected language is installed, a prompt is displayed, indicating that the installation is successful (see). The Language Line Selection bar is displayed on the top. Click and select zh_cn ).

 

 

Install moodle through CLI

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.