Difference between revisions of "User:Aeric/Old Steps for a New Release"
From AgileApps Support Wiki
imported>Aeric |
imported>Aeric Β |
||
(7 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
#:* <tt>$wgScriptPath = "/{retiredWiki}"</tt> | #:* <tt>$wgScriptPath = "/{retiredWiki}"</tt> | ||
#:* <tt>$wgArticlePath = "/{retiredWiki}/$1"</tt> | #:* <tt>$wgArticlePath = "/{retiredWiki}/$1"</tt> | ||
#:* Comment out | #:* Comment out this line to enable search robots on article pages: | ||
# | #::: <tt>$wgNamespaceRobotPolicies = array( NS_MAIN => 'index,follow' );</tt> | ||
#:: ==> | |||
#::: <tt>#$wgNamespaceRobotPolicies = array( NS_MAIN => 'index,follow' );</tt> | |||
#:* Comment out Google analytics in rally360 skin. (Leave its variables alone.) | |||
In <tt>/{newWiki}</tt> | In <tt>/{newWiki}</tt> | ||
Line 11: | Line 14: | ||
#:* <tt>$wgScriptPath = "/{newWiki}"</tt> | #:* <tt>$wgScriptPath = "/{newWiki}"</tt> | ||
#:* <tt>$wgArticlePath = "/{newWiki}/$1"</tt> | #:* <tt>$wgArticlePath = "/{newWiki}/$1"</tt> | ||
#:* Uncomment | #:* Uncomment this line to disable search robots on article pages: | ||
# | #::: <tt>#$wgNamespaceRobotPolicies = array( NS_MAIN => 'index,follow' );</tt> | ||
#:: ==> | |||
#::: <tt>$wgNamespaceRobotPolicies = array( NS_MAIN => 'index,follow' );</tt> | |||
#: | |||
#:* Uncomment Google analytics in rally360 skin. (Leave its variables alone.) | |||
In <tt>/apache_config</tt>: | |||
# Edit <tt>mediawiki.conf_new</tt> | # Edit <tt>mediawiki.conf_new</tt> | ||
# Change the "wiki" alias to point to the new release: | # Change the "wiki" alias to point to the new release: | ||
Line 34: | Line 41: | ||
#: | #: | ||
# Upload <tt>mediawiki.conf_new</tt> | # Upload <tt>mediawiki.conf_new</tt> | ||
# In FileZilla | |||
#* Upload <tt>{newWiki}/LocalSettings.php</tt> | |||
#* Upload <tt>{retiredWiki}/LocalSettings.php</tt> | |||
#: | |||
#In PuTTY or the SSH shell, load the new settings: | |||
#* <tt>pushd /usr/share/mediawiki/apache_conf</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". | |||
Finally, [[User:Aeric/Test|Test the Wiki]] | |||
Β | |||
Β | |||
Β | |||
Β | |||
Test the | |||
Β | |||
Β | |||
Β | |||
Latest revision as of 22:46, 4 September 2013
Setup: On Local System
In /{retiredWiki}
- Edit LocalSettings.php:
- $wgScriptPath = "/{retiredWiki}"
- $wgArticlePath = "/{retiredWiki}/$1"
- Comment out this line to enable search robots on article pages:
- $wgNamespaceRobotPolicies = array( NS_MAIN => 'index,follow' );
- ==>
- #$wgNamespaceRobotPolicies = array( NS_MAIN => 'index,follow' );
- Comment out Google analytics in rally360 skin. (Leave its variables alone.)
In /{newWiki}
- Edit LocalSettings.php:
- $wgScriptPath = "/{newWiki}"
- $wgArticlePath = "/{newWiki}/$1"
- Uncomment this line to disable search robots on article pages:
- #$wgNamespaceRobotPolicies = array( NS_MAIN => 'index,follow' );
- ==>
- $wgNamespaceRobotPolicies = array( NS_MAIN => 'index,follow' );
-
- Uncomment Google analytics in rally360 skin. (Leave its variables alone.)
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
- Upload {newWiki}/LocalSettings.php
- Upload {retiredWiki}/LocalSettings.php
- 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".
Finally, Test the Wiki