[LON-CAPA-cvs] cvs: doc /build ubuntu16LTS_install.frag
raeburn
raeburn at source.lon-capa.org
Wed Mar 17 00:47:44 EDT 2021
raeburn Wed Mar 17 04:47:44 2021 EDT
Modified files:
/doc/build ubuntu16LTS_install.frag
Log:
- Prepend individual commands with sudo instead of using sudo -i
- Elaborate on authentication options for MySQL root user.
Index: doc/build/ubuntu16LTS_install.frag
diff -u doc/build/ubuntu16LTS_install.frag:1.5 doc/build/ubuntu16LTS_install.frag:1.6
--- doc/build/ubuntu16LTS_install.frag:1.5 Sat Jan 9 03:26:20 2021
+++ doc/build/ubuntu16LTS_install.frag Wed Mar 17 04:47:44 2021
@@ -94,6 +94,7 @@
ssh, www, https
</p>
<pre>
+sudo apt-get install ufw
sudo ufw default deny
sudo ufw enable
sudo ufw allow ssh
@@ -158,13 +159,15 @@
sudo mysql_secure_installation
</pre><p>
Press ENTER to skip set up of the validate password plugin.<br />
-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.
+</p><p>
+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.</p>
-<p>
-In Ubuntu systems running MySQL 5.7 (and later), the root user is authenticated by the auth_socket plugin by default.
<h3>Set MPM mode for Apache web server and enable use of cgi scripts and webDAV</h3>
<p>Execute: </p>
<pre>
@@ -264,12 +267,11 @@
<h3>Configuring LON-CAPA</h3>
<p>
-To configure and install LON-CAPA, become root and execute the following commands:
+To configure and install LON-CAPA execute the following commands:
</p>
<pre>
-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
</pre>
<p>
You will need to enter the LON-CAPA configuration information you determined
@@ -285,18 +287,19 @@
Replace USERNAME and DOMAIN with an appropriate username and your domain.
</p>
<pre>
-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
</pre>
<h2>7. <a name="sts">Start/Restart Services</a></h2>
<p>
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.
</p>
<pre>
-/etc/init.d/loncontrol start
-/etc/init.d/apache2 restart
+sudo /etc/init.d/loncontrol start
+sudo service apache2 restart
exit
</pre>
<p>
More information about the LON-CAPA-cvs
mailing list