Difference between revisions of "User:Aeric/Old Steps for a New Release"
From AgileApps Support Wiki
imported>Aeric (Created page with "====Setup: On Local System==== # In <tt>/lj__{retired_version}__/LocalSettings.php</tt>: #:* <tt>$wgScriptPath = "/lj__{retired_version}__"</tt> #:* <tt>$wgArticlePath = "/lj__{r...") |
imported>Aeric |
||
Line 1: | Line 1: | ||
====Setup: On Local System==== | ====Setup: On Local System==== | ||
In <tt>/{retiredWiki}</tt> | |||
#:* <tt>$wgScriptPath = "/ | # Edit <tt>LocalSettings.php</tt>: | ||
#:* <tt>$wgArticlePath = "/ | #:* <tt>$wgScriptPath = "/{retiredWiki}"</tt> | ||
#:* <tt>$wgArticlePath = "/{retiredWiki}/$1"</tt> | |||
#:* Comment out Google analytics in LJ skin. (Leave its variables alone.) | #:* Comment out Google analytics in LJ skin. (Leave its variables alone.) | ||
# Rename <tt>robots.txt_ALLOW</tt> to <tt>robots.txt</tt> to disable robots. | # Rename <tt>robots.txt_ALLOW</tt> to <tt>robots.txt</tt> to disable robots. | ||
In <tt>/{newWiki}</tt> | |||
#:* <tt>$wgScriptPath = "/ | # Edit <tt>LocalSettings.php</tt>: | ||
#:* <tt>$wgArticlePath = "/ | #:* <tt>$wgScriptPath = "/{newWiki}"</tt> | ||
#:* <tt>$wgArticlePath = "/{newWiki}/$1"</tt> | |||
#:* Uncomment Google analytics in LJ skin. (Leave its variables alone.) | #:* Uncomment Google analytics in LJ skin. (Leave its variables alone.) | ||
# Rename <tt>robots.txt</tt> to <tt>robots.txt_ALLOW</tt> to enable search robots. | # Rename <tt>robots.txt</tt> to <tt>robots.txt_ALLOW</tt> to enable search robots. | ||
#In <tt>/apache_config</tt>: | |||
# Edit <tt>mediawiki.conf_new</tt> | |||
# Change the "wiki" alias to point to the new release: | |||
#:<tt>Alias /wiki /user/share/mediawiki/{newWiki}</tt> | |||
====Setup: On the Server==== | ====Setup: On the Server==== | ||
# Start VPN | # Start VPN | ||
# Login as root using PuTTY or SSHshell | # Login as root using PuTTY or SSHshell | ||
====Deploy==== | ====Deploy==== | ||
Do these steps as close to simultaneously as possible: | Do these steps as close to simultaneously as possible: | ||
In FileZilla, <tt>apache_config</tt> | |||
#: | # Get the current configuration file, just in case someone else modified it | ||
#: | #: <tt>./get_conf</tt> | ||
#: | |||
# Save the current settings: | |||
#: <tt>cp mediawiki.conf mediawiki.conf_sav</tt> | |||
#: | #: | ||
# In FileZilla, <tt> | # Upload <tt>mediawiki.conf_new</tt> | ||
# | |||
# | In FileZilla, <tt>{newWiki}</tt> | ||
# Upload <tt>LocalSettings.php</tt> | |||
# Delete <tt>robots.txt</tt> | |||
# Upload <tt>robots.txt_ALLOW</tt> to enable search robots. | |||
In FileZilla, <tt>{retiredWiki}/</tt> | |||
#<tt> | # Upload <tt>LocalSettings.php</tt> | ||
# | # Delete <tt>robots.txt_ALLOW</tt> | ||
# | # Upload<tt>robots.txt</tt> to disable robots. | ||
# | In PuTTY or the SSH shell, load the new settings: | ||
# <tt>pushd /usr/share/mediawiki/apache_conf</tt> | |||
#<tt> | # <tt>./try</tt> | ||
The script does a restart. Ignore the error that says | |||
"Could not reliably determine the server's fully qualified domain name". | |||
Test the new server and the old: | |||
is | :* If all is not well, use <tt>./revert</tt> to restore the old settings | ||
:* If all is well, make backup of <tt>mediawiki.conf_new</tt>. | |||
:* Wait a day | |||
:* |
Revision as of 18:30, 17 October 2012
Setup: On Local System
In /{retiredWiki}
- Edit LocalSettings.php:
- $wgScriptPath = "/{retiredWiki}"
- $wgArticlePath = "/{retiredWiki}/$1"
- Comment out Google analytics in LJ skin. (Leave its variables alone.)
- Rename robots.txt_ALLOW to robots.txt to disable robots.
In /{newWiki}
- Edit LocalSettings.php:
- $wgScriptPath = "/{newWiki}"
- $wgArticlePath = "/{newWiki}/$1"
- Uncomment Google analytics in LJ skin. (Leave its variables alone.)
- Rename robots.txt to robots.txt_ALLOW to enable search robots.
- In /apache_config:
- Edit mediawiki.conf_new
- Change the "wiki" alias to point to the new release:
- Alias /wiki /user/share/mediawiki/{newWiki}
Setup: On the Server
- Start VPN
- Login as root using PuTTY or SSHshell
Deploy
Do these steps as close to simultaneously as possible:
In FileZilla, apache_config
- Get the current configuration file, just in case someone else modified it
- ./get_conf
- Save the current settings:
- cp mediawiki.conf mediawiki.conf_sav
- Upload mediawiki.conf_new
In FileZilla, {newWiki}
- Upload LocalSettings.php
- Delete robots.txt
- Upload robots.txt_ALLOW to enable search robots.
In FileZilla, {retiredWiki}/
- Upload LocalSettings.php
- Delete robots.txt_ALLOW
- Uploadrobots.txt to disable robots.
In PuTTY or the SSH shell, load the new settings:
- pushd /usr/share/mediawiki/apache_conf
- ./try
The script does a restart. Ignore the error that says "Could not reliably determine the server's fully qualified domain name".
Test the new server and the old:
- If all is not well, use ./revert to restore the old settings
- If all is well, make backup of mediawiki.conf_new.
- Wait a day