< Appropedia:Site development

Appropedia:Site development/Upgrade checklist

From Appropedia

Pre Upgrade List[edit source]

Steps taken in upgrate to 1.9.2[edit source]

  1. Tested the latest domian backup by untaring it to a test directory. Everything looked okay. Deleted the test directory. Renamed today's domain and database backups to be different than the pre-update backup.
  2. cd ~/appropedia.org
  3. mkdir ~/appropedia.org/preserve
  4. cp LocalSettings.php ~/appropedia.org/preserve/LocalSettings.php
  5. Run backup scripts for domain and database
    • cd ~/backups
    • ./appropedia.sh
    • ./mysql.sh
  6. cd ~/
  7. wget http://download.wikimedia.org/mediawiki/1.9/mediawiki-1.9.2.tar.gz
  8. gunzip -c mediawiki-1.9.2.tar.gz | tar -xf -
  9. cd mediawiki-1.9.2
  10. mv AdminSettings.sample AdminSettings.php
  11. vi AdminSettings.php
    Correct these lines
    • $wgDBadminuser = '*******';
    • $wgDBadminpassword = '*********';
  12. cp -R * ~/appropedia.org/
  13. cd ~/appropedia.org
  14. Check version number to confirm successful recursive copy (cp -R *)
  15. /usr/local/php5/bin/php ~/appropedia.org/maintenance/update.php
  16. rm -r preserve

That should be it.

Recommended: Test the update, Upgrade extensions. Follow the Post Upgrade List below.

1.9.2 upgrade by -GoodSignal 01:55, 17 February 2007 (PST)

Post Upgrade List[edit source]

Google Analytics[edit source]

Replace Google analytics code into current skin. Add it right above </body></html>:

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
<script type="text/javascript">
_uacct = "UA-761261-1";

--Lonny 02:33, 17 February 2007 (PST)

Social links[edit source]

Add back into the MonoBook.php, the following just after:

</div><!-- end of the left (by default at least) column --> 
	<div class="visualClear"></div> 
<!-- Start Monobook Bookmarklets, originally created by Jon Rees, Oxford Informatics, adapted by Lonny //-->
<div class="pBody" align="right">

<?php $this_url = htmlspecialchars($this->data['content_actions']['nstab-main']['href']) ?>

<?php $this_url = 'https://www.appropedia.org'.$this_url ?>

<a href="http://www.hugg.com/submit?url=<?php echo $this_url ?>&title=<?php $this->text('title') ?>" title="Hugg this page"><img src='https://www.appropedia.org/images/bookmarklets/hugg.gif' border="0"></a>  

<a href="http://digg.com/submit?phase=2&url=<?php echo $this_url ?>&title=<?php $this->text('title') ?>" title="Digg us"><img src='https://www.appropedia.org/images/bookmarklets/digg.png' border="0"></a>  

<a href="http://technorati.com/faves/?add=<?php echo $this_url ?>" title="Add our site to your technorati bookmarks!"><img src='https://www.appropedia.org/images/bookmarklets/technorati.png' border="0"></a> 

<a href="http://del.icio.us/post?url=<?php echo $this_url ?>&title=<?php $this->text('title') ?>" title="Add our site to your del.icio.us bookmarks!"><img src='https://www.appropedia.org/images/bookmarklets/delicious.png' border="0"></a>  

<a href="http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=<?php echo $this_url ?>&title=<?php $this->text('title') ?>" title="Add our site to your Google bookmarks!"><img src='https://www.appropedia.org/images/bookmarklets/google.png' border="0"></a> 

<a href="http://reddit.com/submit?url=<?php echo $this_url ?>&title=<?php $this->text('title') ?>" title="Add our site to your reddit bookmarks!"><img src='https://www.appropedia.org/images/bookmarklets/reddit.png' border="0"></a>  

<a href="http://blogmarks.net/my/new.php?mini=1&simple=1&url=<?php echo $this_url ?>&title=<?php $this->text('title') ?>" title="Add our site to your blogmark bookmarks!"><img src='https://www.appropedia.org/images/bookmarklets/blogmarks.png' border="0"></a>  

<a href="http://bluedot.us/Authoring.aspx?u=<?php echo $this_url ?>&title=<?php $this->text('title') ?>" title="Add our site to your blue dot bookmarks!"><img src='https://www.appropedia.org/images/bookmarklets/bluedot.png' border="0"></a> 

<a href="http://feeds.feedburner.com/AppropediaRC" rel="alternate" type="application/rss+xml"><img src="https://www.appropedia.org/images/bookmarklets/feed-icon16x16.png" alt="Subscribe" style="vertical-align:middle;border:0"/></a> <a href="http://feeds.feedburner.com/AppropediaRC" rel="alternate" type="application/rss+xml">Subscribe</a>


<!-- Ends Monobook Bookmarklets, originally created by Jon Rees, Oxford Informatics, adapted by Lonny //-->

--Lonny 03:25, 17 February 2007 (PST)

Updated to 1.13[edit source]

dump database
mysqldump -uadb.. -pPASSWORD -h mysql.appropedia.org appropedia > backups/archives/appropedia.10508
zip it (could do this using a tag with the dump)
gzip appropedia.10508
save it off site
run update site from within goodies in Dreamhost
cp AdminSettings.sample AdminSettings.php
(Optional) Type this command to hide your file from casual snooping: chmod 640 AdminSettings.php
Edit the appropriate lines in this file with the username and password for your Mediawiki's MySQL database
cd maintenance/
/usr/local/php5/bin/php update.php ("Deleting old default messages" may take 5-10 minutes, depending on the size of your database)
Add this just before </body></html> in MonoBook.php
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
<script type="text/javascript">
_uacct = "UA-761261-1";
Add this somewhere
       <script type="text/javascript">
       addthis_url    = location.href;  
       addthis_title  = document.title;
       addthis_pub    = 'lonny';
       </script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>