How I Migrated Wiki from Centos 6 to Centos 7

From DISI
Revision as of 22:01, 27 October 2021 by Jgutierrez6 (talk | contribs) (Created page with "== Introduction == The previous wiki existed in a CentOS 6 machine called "rho". Now, it currently exists in a CentOS 7 machine called "vav". According to the [https://www.me...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

The previous wiki existed in a CentOS 6 machine called "rho". Now, it currently exists in a CentOS 7 machine called "vav".

According to the media wiki guide, the safest way to migrate is by using the same MediaWiki version on the new server and perform an upgrade directly on the new server. However, I did not do that. I installed a new version of MediaWiki first and then copied the wiki SQL data into the new version.

Client side of Wiki in Vav

Location: /local2/wiki/mediawiki

Introduction

  1. Install LAMP Stack then install MediaWiki (Guide follow till step 8)
    • yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
    • yum install epel-release
    • yum-config-manager --disable remi-php54
    • yum-config-manager --enable remi-php73
    • yum -y install httpd
    • yum -y install mariadb-server mariadb-client
    • yum install php php-mysql php-pdo php-gd php-mbstring php-xml php-intl texlive
    • systemctl start httpd
    • systemctl enable httpd
    • systemctl start mariadb
    • systemctl enable mariadb
    • mysql_secure_installation
    • systemctl restart httpd
    • cd /var/www/html
    • wget https://releases.wikimedia.org/mediawiki/1.32/mediawiki-1.32.0.tar.gz
    • tar xf mediawiki*.tar.gz
    • mv mediawiki-1.32.0/* /<directory of where you want to store wiki files>
    • Mariadb root user/pass
      • root
      • cluster2 password based on vav
  2. Make LocalSettings.php
    • One way is to copy the old one and fix the information
    • Second way is to do
      • php <path to wiki directory>/maintenance/install.php <options>
        • Example: php maintenance/install.php DIZI admin --pass=GPCRxtal1! --dbuser=root --dbpass=<cluster2 root password>
    • Always make sure that the information on LocalSettings.php are correct
  3. systemctl restart httpd sometimes helped