AgileApps Support Wiki Pre Release

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
Β 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
====Setup: On Local System====
====Setup: On Local System====
# In <tt>/lj__{retired_version}__/LocalSettings.php</tt>:
In <tt>/{retiredWiki}</tt>
#:* <tt>$wgScriptPath = "/lj__{retired_version}__"</tt>
# Edit <tt>LocalSettings.php</tt>:
#:* <tt>$wgArticlePath = "/lj__{retired_version}__/$1"</tt>
#:* <tt>$wgScriptPath = "/{retiredWiki}"</tt>
#:* Comment out Google analytics in LJ skin. (Leave its variables alone.)
#:* <tt>$wgArticlePath = "/{retiredWiki}/$1"</tt>
# Rename <tt>robots.txt_ALLOW</tt> to <tt>robots.txt</tt> to disable robots.
#:* 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>/lj__{now_curent_version}__/LocalSettings.php</tt>:
In <tt>/{newWiki}</tt>
#:* <tt>$wgScriptPath = "/wiki"</tt>
# Edit <tt>LocalSettings.php</tt>:
#:* <tt>$wgArticlePath = "/wiki/$1"</tt>
#:* <tt>$wgScriptPath = "/{newWiki}"</tt>
#:* Uncomment Google analytics in LJ skin. (Leave its variables alone.)
#:* <tt>$wgArticlePath = "/{newWiki}/$1"</tt>
# Rename <tt>robots.txt</tt> to <tt>robots.txt_ALLOW</tt> to enable search robots.
#:* 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>
# 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
# Edit <tt>/etc/httpd/conf.d/mediawiki.conf</tt>
#:<tt>Alias /wiki /user/share/mediawiki/lj__(now_current_version)</tt>
#: (For sanity's sake, move that line and accompanying comment so it is in front of the appropriate <tt><Directory></tt> section.)


====Deploy====
====Deploy====
Do these steps as close to simultaneously as possible:
Do these steps as close to simultaneously as possible:


# In FileZilla, <tt>lj{old_version}/</tt>
In FileZilla, <tt>apache_config</tt>
#:* Upload <tt>LocalSettings.php</tt>
# Get the current configuration file, just in case someone else modified it
#:* Rename <tt>robots.txt_ALLOW</tt> to <tt>robots.txt</tt> to disable robots.
#: <tt>./get_conf</tt>
#:
#:
# In FileZilla, <tt>lj(new_version)</tt>
# Save the current settings:
#:* Upload <tt>LocalSettings.php</tt>
#: <tt>cp mediawiki.confΒ  mediawiki.conf_sav</tt>
#:* Rename <tt>robots.txt</tt> to <tt>robots.txt_ALLOW</tt> to enable search robots.
Β 
Then in the SSH shell, do an Apache cold start:
#<tt>service httpd stop</tt>
#: (The service has to be down for cache clearing to work properly).
#:
#:
#<tt>htcacheclean -r -p/var/cache/mod_proxy</tt>
# Upload <tt>mediawiki.conf_new</tt>
#: ''Learn more:'' http://httpd.apache.org/docs/2.2/programs/htcacheclean.html
# In FileZilla
#* Upload <tt>{newWiki}/LocalSettings.php</tt>
#* Upload <tt>{retiredWiki}/LocalSettings.php</tt>
#:
#:
#<tt>service httpd start</tt>, and ignore error
#In PuTTY or the SSH shell, load the new settings:
#:"Could not reliably determine the server's fully qualified domain name"
#* <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".


{{Note|The cold start takes negligible time, and unlike a reload or restart, there
Finally, [[User:Aeric/Test|Test the Wiki]]
is no process optimization, therefore no shortcuts--which makes "correct result"
the most probable outcome.}}

Latest revision as of 22:46, 4 September 2013

Setup: On Local System

In /{retiredWiki}

  1. 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}

  1. 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:

  1. Edit mediawiki.conf_new
  2. Change the "wiki" alias to point to the new release:
    Alias /wiki /user/share/mediawiki/{newWiki}

Setup: On the Server

  1. Start VPN
  2. Login as root using PuTTY or SSHshell

Deploy

Do these steps as close to simultaneously as possible:

In FileZilla, apache_config

  1. Get the current configuration file, just in case someone else modified it
    ./get_conf
  2. Save the current settings:
    cp mediawiki.conf mediawiki.conf_sav
  3. Upload mediawiki.conf_new
  4. In FileZilla
    • Upload {newWiki}/LocalSettings.php
    • Upload {retiredWiki}/LocalSettings.php
  5. 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