--- doc/build/ubuntu16LTS_install.frag 2021/01/09 03:26:20 1.5 +++ doc/build/ubuntu16LTS_install.frag 2021/03/17 04:47:44 1.6 @@ -94,6 +94,7 @@ Use ufw to allow incoming traffic for th ssh, www, https

+sudo apt-get install ufw
 sudo ufw default deny
 sudo ufw enable
 sudo ufw allow ssh
@@ -158,13 +159,15 @@ This may take some minutes due to LON-CA
 sudo mysql_secure_installation
 

Press ENTER to skip set up of the validate password plugin.
-Although you will be prompted to set a password for the MySQL root user, in Ubuntu systems running MySQL 5.7 (and later), -the root user is authenticated by the auth_socket plugin by default, so - -Answer “Y” (yes) to the prompts to: (a) remove the anonymous user, (b) restrict root user access to the local machine, +In Ubuntu systems running MySQL 5.7 (and later), by default the MySQL root +user is authenticated by the auth_socket plugin which restricts root access +to the local machine (and to sudo). If you prefer to set a password for the +MySQL root user, you can do so, and user that instead of the default. +

+Answer “Y” (yes) to the prompts to: +(a) remove the anonymous user, +(b) restrict root user access to the local machine, and (c) remove the test database.

-

-In Ubuntu systems running MySQL 5.7 (and later), the root user is authenticated by the auth_socket plugin by default.

Set MPM mode for Apache web server and enable use of cgi scripts and webDAV

Execute:

@@ -264,12 +267,11 @@ for it to function at all.  Below is a l
 
 

Configuring LON-CAPA

-To configure and install LON-CAPA, become root and execute the following commands: +To configure and install LON-CAPA execute the following commands:

-sudo -i
-cd /root/loncapa-X.Y.Z     (X.Y.Z should correspond to a version number like '2.11.2')
-./UPDATE
+cd ../loncapa-X.Y.Z  (X.Y.Z should correspond to a version number like '2.11.2')
+sudo ./UPDATE
 

You will need to enter the LON-CAPA configuration information you determined @@ -285,18 +287,19 @@ invoked below requires that you enter th Replace USERNAME and DOMAIN with an appropriate username and your domain.

-cd /root/loncapa-X.Y.Z/loncom/build
-perl make_domain_coordinator.pl USERNAME DOMAIN
+cd loncom/build
+sudo perl make_domain_coordinator.pl USERNAME DOMAIN
+cd
 

7. Start/Restart Services

The LON-CAPA network services take a moment to start. Most misconfigurations -will be apparent at this step. Lastly, exit from root status to resume use of your regular account. +will be apparent at this step.

-/etc/init.d/loncontrol start
-/etc/init.d/apache2 restart
+sudo /etc/init.d/loncontrol start
+sudo service apache2 restart
 exit