Changes

Jump to: navigation, search

Website application upgrades

1,162 bytes removed, 01:08, 13 September 2021
m
Upgrade WordPress (blog): upgrade wordpress
{{man warn|Notes for the [email protected]|Used in the maintenance of the Gramps website.}}
= Upgrade Mantis Bug Tracker (bug tracker) =
 
<code>https://gramps-project.org/bugs/</code>
 
[https://www.mantisbt.org/ MantisBT] is an open source issue tracker.
[https://gramps-project.org/bugs/my_view_page.php Current installed version] 2.422.1 (released: 20172019-0509-2027)
* Place MantisBT into [https://www.mantisbt.org/docs/master/en-US/Admin_Guide/html/admin.install.upgrade.html readonly mode] using the file <code>mantis_offline.php</code> to prevent users from using the system while the upgrade is in progress.
* Rename the new folder from such as "mantisbt-release-2.10.0" to "bugsnew"
* Copy "config_inc.php" from the old folder into the new folder (the "config_inc.php" file is located in the "config" directory.)
* Copy the "phpmailer" folder from the "library" folder from the old "bugs" into the new folder "bugsnew/library"
** Failing to to do this step will result in an unhelpful blank html page! Currently using PhpMailerAutoload v5.2.22 (20170105) check mantisbt readme if this needs to be upgraded. If so download from github ( https://github.com/PHPMailer ).
* Check any readme type files to make sure there are not any database schema changes required - and follow the directions if there are...
** Then check the install by using: "/mantisbt/admin/check/index.php"
<hr>
Update the MantisBT plugins by downloading the updated version and install them (check the readme and follow any instructions)
* Source control integration plugin framework for MantisBT, including support for Github ( https://github.com/mantisbt-plugins/source-integration ) 2 part plugin (Get the master branch)[https://mantisbt.org/bugs/view.php?id=21201]
** Source control integration (version 2.3.0)
** Source Github integration (version 2.1.0)
* Move the "bugsold" folder to <code>/home/gramps/</code> to prevent access.
* After a two weeks, remove the "bugsold" folder.
<hr>
Final required modifications to MantisBT source code so that the "Gramps > Product Version" is required by default when raising bug reports:
 
* In <code>[https://github.com/mantisbt/mantisbt/blob/master/core/bug_api.php core/bug_api.php]</code> find:
<pre>function validate( $p_update_extended = true)</pre>
 
and add this in just below (check braces are balanced):
<pre>
{
 
if($this->project_id !== 3) {
if( is_blank( $this->version ) ) {
error_parameters( lang_get( 'version' ) );
trigger_error( ERROR_EMPTY_FIELD, ERROR );
}
}
</pre>
 
 
* In <code>[https://github.com/mantisbt/mantisbt/blob/master/bug_report_page.php bug_report_page.php]</code> added line to make the red '''*''' (Asterisk character) show after the "Gramps > Product Version" change:
<br><code><?php echo lang_get( 'product_version' ) ?></code>
<br>To read:
<br><code><?php echo '<span class="required">*</span>' . lang_get( 'product_version' ) ?></code>
<hr>
Also check that the following two links work and are not blank:
= Upgrade MediaWiki (wiki) =
 
<code>https://gramps-project.org/wiki/</code>
 
[https://www.mediawiki.org/wiki/MediaWiki MediaWiki] is a free software open source wiki package written in PHP, originally for use on Wikipedia.
* Using the Gramps Cpanel interface go to the MySQL section, then select "phpMyAdmin" and remove the often large cache tables of gramps_wiki ( "l10n_cache" and "objectcache" ).
* Backup gramps_wiki mysql database using phpMyAdmin from the CPanel interface using the SQL format.
** If this does not work due to timeouts on Godaddy a timeout occurs try using SSH and the mysql command or even phpMyAdmin to clone/copy the existing database.
* Download latest version of MediaWiki ( https://www.mediawiki.org/wiki/Download ) - (Use the ".tar.gz" file.)
* Upload the MediaWiki ".tar.gz" file into the Gramps hosting site either using ftp or the CPanel "File Manager".
* Use the CPanel "File Manager" to unarchive it into <code>/</code> - it will create a new folder such as "mediawiki-1.3031.03"
From here, you can use a combination of the Cpanel "File Manager" or ssh, so long as you get it all done!
* Rename the new folder from such as "mediawiki-1.3031.03" to "wikinew"
* Copy the "LocalSettings.php" file from "wiki" to "wikinew" folder.
* Copy the entire "images" folder (quite large - nearly 1.7GB9GB) from "wiki" to "wikinew" - you will be replacing an existing folder in wikinew. Again, you could do this with the filemanager or use ssh if you are comfortable with it). Even using ssh it takes quite a while, and I'm pretty sure it puts a load on the server...
* Copy folders from the "extensions" folder in "wiki" into "wikinew". '''Copy only the ones that do not exist there''' (that is, don't overwrite folders in the extensions directory with older versions - only copy across the ones that are not already there). We use the extensions listed below that do not come with the base install as well as a few also listed from the base install that you should not copy over. You need to check and see if there are new versions of these, as sometimes the original versions will not work with the new version of MediaWiki. Installed extensions are listed on the following page: https://gramps-project.org/wiki/index.php?title=Special:Version
** Extension that Gramps wiki uses that come with MediaWiki (do not need to be installed) but are listed in the LocalSettings.php file
*** ParserFunctions - Enhance parser with logical functions
*** TitleBlacklist
** Thirdparty Extensions
*** Confirm User Accounts – Gives bureaucrats the ability to confirm account requests
*** UserMerge - Merges references from one user to another user in the wiki database - will also delete old users following merge. Requires usermerge privileges
*** LabeledSectionTransclusion
*** Variables - Parser functions allowing to work with dynamic variables in an article scoped context
*** Google Analytics Integration
** [https://www.mediawiki.org/wiki/Manual:Skins Mediawiki:Skins](Themes)
*** Default is "Vector" as it has been customised for Gramps ( see https://gramps-project.org/wiki/index.php/MediaWiki:Common.css )
*** MobileFrontEnd
**** "MinervaNeue" mobile Skin (which is the same one used on Wikipedia)
*** <s>Collection - Create pdf books from wiki pages</s> '''Disabled due to server load issues!'''
If there are any database schema changes, you may need to run the "update.php" file that is in the MediaWiki maintenance directory.
* After a two weeks, remove the "wikiold" folder.
Skins (Themes)
* Default is "Vector" as it has been customised for Gramps
'''Backup the website.'''
= Upgrade WordPress (blog) =
 
<code>https://gramps-project.org/blog/</code>
 
[https://wordpress.org/ WordPress] is open source software used to create the blog.
Current installed version 5.28.3 1 ([https://wordpress.org/download/releases/ released: 2019] 2021-09-0409)
* Backup gramps_blog mysql database using phpMyAdmin from the CPanel interface using the SQL format.
* Login to the Gramps blog ( https://gramps-project.org/introduction-WPblog/wp-login.php ) using an admin login.
The Dashboard will indicated to you if there is a newer version available for updating/upgrading.
-->
=Changing to a new Hosting service=
{{stub}}
General summary of steps taken on move to current host.
 
=See also=
*[[.dtd_and_.rng]]

Navigation menu