- set up fqdn for instance – DNS
- manually create moodledata directory for site .. in this example: /var/www/clasdata
mkdir /var/www/clasdata
Then chown apache:apache /var/www/clasdata - create a blank database for site. In mysql client as super user:
create database clasmoodle character set utf8mb4 collate utf8mb4_general_ci;
\q mysql client - acquire noodle code via git … this a 3 step process. Directory given clastest
From apache document root: /var/www/html/
*WARNING: on copy and paste ‘–‘ below might come across as ‘-‘. If git branch command fails, check ‘dashes’
Issue:
git clone git://git.moodle.org/moodle.git clastest
cd clastest
git branch –track MOODLE_38_STABLE origin/MOODLE_38_STABLE
git checkout MOODLE_38_STABLE
chown apache:apache ../clastest -R
Finally, the following … *you must edit to your server/taste. The command is really on one line.
The \ have been added to break the command into parts you can inspect and then pause.
Press ENTER at your own risk *IF* you did not change/edit before pasting command to command line.
php admin/cli/install.php \
–lang=en \
–wwwroot=https://sos.sosoftexas.org/clastest \
–dataroot=/var/www/clasdata \
–dbname=clastest \
–dbuser=root \
–dbpass=’S0s2020!’ \
–prefix=mdl_ \
–fullname=’CLAS Moodle’ \
–shortname=CLASM \
–adminuser=admin \
–adminpass=’Clas2020!’ \
–adminemail=’clas@sos.sosoftexas.org’ \
–non-interactive \
–agree-license
Should end with:
++ Success ++
Installation completed successfully.
Last commands:
chmod ugo+r config.php
chown apache:apache * -R
List site with browser.
Login as ‘admin’ using password given ‘Clas2020!