[LON-CAPA-cvs] cvs: doc /build ubuntu14LTS_install.frag

raeburn raeburn at source.lon-capa.org
Tue Mar 16 23:22:07 EDT 2021

raeburn		Wed Mar 17 03:22:07 2021 EDT

  Modified files:              
    /doc/build	ubuntu14LTS_install.frag 
  - Recommend using mysql_secure_installation
  - Prepend individual commands with sudo instead of using sudo -i
Index: doc/build/ubuntu14LTS_install.frag
diff -u doc/build/ubuntu14LTS_install.frag:1.4 doc/build/ubuntu14LTS_install.frag:1.5
--- doc/build/ubuntu14LTS_install.frag:1.4	Sat Jan  9 03:26:20 2021
+++ doc/build/ubuntu14LTS_install.frag	Wed Mar 17 03:22:07 2021
@@ -94,6 +94,7 @@
 ssh, www, https
+sudo apt-get install ufw
 sudo ufw default deny
 sudo ufw enable
 sudo ufw allow ssh
@@ -152,6 +153,15 @@
 This may take some minutes due to LON-CAPA's large number of dependencies.
+<h3>Secure MySQL</h3>
+<p> Execute: </p>
+sudo mysql_secure_installation
+Answer “Y” (yes) to the prompts to: 
+(a) remove anonymous users, 
+(b) restrict root user access to the local machine,
+and (c) remove the test database.</p>
 <h3>Set MPM mode for Apache web server and enable use of cgi scripts and webDAV</h3>
 <p>Execute: </p>
@@ -181,7 +191,6 @@
 cd installation
 sudo ./install.pl
 The script is used to prepare a Linux system to run LON-CAPA, and can also be
@@ -251,12 +260,11 @@
 <h3>Configuring LON-CAPA</h3>
-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.0')
+cd ../loncapa-X.Y.Z  (X.Y.Z should correspond to a version number like '2.11.0')
+sudo ./UPDATE
 You will need to enter the LON-CAPA configuration information you determined 
@@ -272,18 +280,19 @@
 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
 <h2>7. <a name="sts">Start/Restart Services</a></h2>
 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

More information about the LON-CAPA-cvs mailing list