(Created page with "{{MARKDOWN}} ## From favog 1. On nukka ```bash sudo su - systemctl stop mysql systemctl stop jetty systemctl stop apache2 rm -rf /srv/www/htdocs/* rm-rf /var/lib/mysql/* ``` 1...")
 
No edit summary
 
(37 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{MARKDOWN}}
[[Category:IT]]
## From favog
 
1. On nukka
# Check favog is up well in advance. If it isn't, get Matt to start it
```bash
# Make sure Matt is available when you're planning to make the switch
sudo su -
# If you are planning to allow people to edit the wiki on favog, ask yourself if you really want to do that. If you do, ask Clive what to do. We don't do this any more because it takes forever to synch back to merple over 4G in a field.
systemctl stop mysql
# Get Matt to build the offline version of the website
systemctl stop jetty
# On gonzo, as root, run `~/server_synch` and make yourself comfortable. It takes a significant length of time
systemctl stop apache2
# Get Matt to deploy the offline version of the website to favog
rm -rf /srv/www/htdocs/*
# Get Matt to swap http/https over to `favog` on the router - leave ssh until you have confirmed everything is working
rm-rf /var/lib/mysql/*
# Check it all
```
## Check the website is up.
1. On favog
## Check the wikis are up
    1. edit `/etc/mediawiki_global.inc.php` - ensure `$wgReadOnly` is set
## Check the wikis are editable
    2.
# Get Matt to swap ssh over
```bash
# Check ssh now connects to `favog`
systemctl stop mysql
systemctl stop jetty
systemctl stop apache2
rsync -avz --progress /srv/www/htdocs nukka:/srv/www/
rsync  -avz --progress /var/lib/mysql/* nukka:/var/lib/mysql/
rsync  -avz --progress /home/websites/mediawiki-public-images nukka:/home/websites/
scp /usr/share/jetty/webapps/website.war nukka:/usr/share/jetty/webapps/
```
1. On nukka
    1.
```bash
sudo su -
systemctl start mysql
systemctl start jetty
systemctl start apache2
/etc/cron.daily/ls2
```
    1. edit `/etc/mediawiki_global.inc.php` - ensure `$wgReadOnly` is not set
1. Get Matt to swap http/https over to `nukka` on the router - leave ssh until you have confirmed everything is working
1. Check it all
    1. Check the website is up.
    1. Check the wikis are up
    1. Check the wikis are editable
    1. Check ls2 is running and that you can search for a recent page
1. Get Matt to swap ssh over
1. Check ssh now connects to `nukka`

Latest revision as of 16:43, 24 April 2024


  1. Check favog is up well in advance. If it isn't, get Matt to start it
  2. Make sure Matt is available when you're planning to make the switch
  3. If you are planning to allow people to edit the wiki on favog, ask yourself if you really want to do that. If you do, ask Clive what to do. We don't do this any more because it takes forever to synch back to merple over 4G in a field.
  4. Get Matt to build the offline version of the website
  5. On gonzo, as root, run `~/server_synch` and make yourself comfortable. It takes a significant length of time
  6. Get Matt to deploy the offline version of the website to favog
  7. Get Matt to swap http/https over to `favog` on the router - leave ssh until you have confirmed everything is working
  8. Check it all
    1. Check the website is up.
    2. Check the wikis are up
    3. Check the wikis are editable
  9. Get Matt to swap ssh over
  10. Check ssh now connects to `favog`