From bb6d440af5f9b667ca95009898e06a5dae5083d2 Mon Sep 17 00:00:00 2001 From: Hosung Song Date: Mon, 15 Oct 2018 15:22:49 -0700 Subject: [PATCH] Fix typos and add missing last step in Generalize-To-Lamp.md --- docs/Generalize-To-Lamp.md | 6 ++++-- scripts/install_moodle.sh | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/Generalize-To-Lamp.md b/docs/Generalize-To-Lamp.md index 12402f5..1af4a62 100644 --- a/docs/Generalize-To-Lamp.md +++ b/docs/Generalize-To-Lamp.md @@ -58,7 +58,7 @@ chmod 400 /azlamp/certs/wpsitename.mydomain.com/* Navigate to the WordPress content directory and run the following command: ``` -mkdir -p /azlam/data/wpsitename.mydomain.com/wp-content/uploads +mkdir -p /azlamp/data/wpsitename.mydomain.com/wp-content/uploads cd /azlamp/html/wpsitename.mydomain.com ln -s /azlamp/data/wpsitename.mydomain.com/wp-content/uploads . ``` @@ -74,7 +74,7 @@ On the controller machine, look up the file `/azlamp/bin/update-vmss-config`. If ``` #1) # . /azlamp/bin/utils.sh - # reset_all_sites true VMSS apache + # reset_all_sites_on_vmss true VMSS apache #;; ``` @@ -82,4 +82,6 @@ Remove all the leading `#` characters from these lines (uncommenting) and save t If you are adding sites for the second or later time, you'll already have the above lines commented out. Just create another `case` block, copying the 4 lines, but make sure to change the number so that it's one greater than the last VMSS config version number (you should be able to find that from the script). +The last step is to let the `/azlamp/html` directory sync with `/var/www/html` in every VMSS instance. This should be done by running `/usr/local/bin/update_last_modified_time.azlamp.sh` script on the controller machine as root. Once this is run and after a minute, the `/var/www/html` directory on every VMSS instance should be the same as `/azlamp/html`, and the newly added sites should be available. + At this point, your LAMP application is setup to use in the LAMP cluster. If you'd like to install a separate LAMP application (WordPress or otherwise), you'll have to repeat the process listed here with a new domain for the new application. \ No newline at end of file diff --git a/scripts/install_moodle.sh b/scripts/install_moodle.sh index 662b346..d4ff0c4 100644 --- a/scripts/install_moodle.sh +++ b/scripts/install_moodle.sh @@ -257,7 +257,7 @@ do #1) # . /azlamp/bin/utils.sh - # reset_all_sites true VMSS apache + # reset_all_sites_on_vmss true VMSS apache #;; *)