[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
Log:
- 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
</p>
<pre>
+sudo apt-get install ufw
sudo ufw default deny
sudo ufw enable
sudo ufw allow ssh
@@ -152,6 +153,15 @@
</pre><p>
This may take some minutes due to LON-CAPA's large number of dependencies.
</p>
+<h3>Secure MySQL</h3>
+<p> Execute: </p>
+<pre>
+sudo mysql_secure_installation
+</pre><p>
+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>
<pre>
@@ -181,7 +191,6 @@
<pre>
cd installation
sudo ./install.pl
-
</pre>
<p>
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>
<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.0')
-./UPDATE
+cd ../loncapa-X.Y.Z (X.Y.Z should correspond to a version number like '2.11.0')
+sudo ./UPDATE
</pre>
<p>
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.
</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