MediaWIKI Upgrade: Difference between revisions

Line 22: Line 22:
find /var/www/html/WhatEverDirectory/images -type d -exec chmod 755 {} \;
find /var/www/html/WhatEverDirectory/images -type d -exec chmod 755 {} \;
</syntaxhighlight>Copy previous version of MediaWiki website files into the new directory: cp -R -n -v WhatEverSource WhatEverDestination (This will not overwrite any new files, IE "upgraded" files, but has the effect of copying all the extensions, images, and any other files from the old website version, while paying deference to the newer files.  Of course if any MediaWiki code files have been modified, the same modifications should be made to the new files, but this is rare.).  Below are some examples;<syntaxhighlight lang="text">
</syntaxhighlight>Copy previous version of MediaWiki website files into the new directory: cp -R -n -v WhatEverSource WhatEverDestination (This will not overwrite any new files, IE "upgraded" files, but has the effect of copying all the extensions, images, and any other files from the old website version, while paying deference to the newer files.  Of course if any MediaWiki code files have been modified, the same modifications should be made to the new files, but this is rare.).  Below are some examples;<syntaxhighlight lang="text">
To remove the "This page was lasted edited on..." from the bottom of each Wiki page: In /PathToWikiWebFiles/languages/i18n/en.json, empty the data field for "lastmodifiedatby"
To remove the "This page was lasted edited on..." from the bottom of each Wiki page: In /PathToWikiWebFiles/languages/i18n/en.json, empty the data field for "lastmodifiedat" "lastmodifiedatby"
 
Which contains this: "This page was last edited on $1, at $2."
</syntaxhighlight>Upgrade extensions (if there are upgrades).  Visual Editor is one that needs to be kept up.  Hopefully nothing breaks for extensions that don't have upgrades available.
</syntaxhighlight>Upgrade extensions (if there are upgrades).  Visual Editor is one that needs to be kept up.  Hopefully nothing breaks for extensions that don't have upgrades available.
<br />
<br />