Child pages
  • CentOS 7 with MariaDB

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

OS

Following instruction is based on the CentOS7 installation as Minimal package.

...

Code Block
languagetext
sudo yum -y install firewalld
sudo systemctl enable firewalld
sudo systemctl start firewalld
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --reload


Middleware Installation

Web Server, MariaDB, Full Text Search Engine and PHP

WEKO utilize Groonga and Mroonga for the full text search engine.
Groonga: http://groonga.org/, Mroonga: http://mroonga.org/
Following instruction refers http://mroonga.org/docs/install/centos.html#centos-7-with-the-official-mariadb-package

...

Code Block
languagetext
sudo yum install -y poppler-utils

Other Middleware

Library for making PDF thumbnail

...

Code Block
languagetext
sudo yum install -y ffmpeg

Middleware Setup and Configuration

Database

Setup root password
Code Block
languagetext
sudo systemctl restart mariadb
/usr/bin/mysqladmin -u root password 'root-no-password'

...

Code Block
languagetext
mysql -u root -proot-no-password
MariaDB [(none)]> use mysql
MariaDB [mysql]> delete from user where user='';
Create database for WEKO(NetCommon) installation
Code Block
languagetext
MariaDB [mysql]> create database nc2db default character set UTF8;
Create an database user and assign the privilege to the previously created db.
Code Block
languagetext
MariaDB [mysql]> grant all on nc2db.* to nc2user@localhost identified by 'nc2pass';

PHP

Open /etc/php.ini by editor.
Modify memory related configuration. Each size have to have the relationship as follows.
upload_max_filesize < post_max_size < memory_limit
For example,

...

Code Block
languagetext
[Date]
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
date.timezone = "Asia/Tokyo"

NetCommons2

Before Install Preparation

Install wget first.

Code Block
languagetext
sudo yum install -y wget

...

Code Block
languagetext
sudo systemctl restart httpd

Installation

Access to the site you will install the NC2 by browser. You can see the installation page like this.
In this page, select English anyway from the pull-down menu.

...

Congratulations! Installation of NetCommons2 has been completed.

 

WEKO

Checkout WEKO module

In order to download the latest WEKO module from the source code repository, install the svn first

...

Code Block
languagetext
svn co http://forge.at.nii.ac.jp/svn/nc/repository/trunk repository
sudo cp -rp repository /var/www/html/nc2/webapp/modules/
sudo chown -R apache:apache /var/www/html/nc2/webapp/modules/repository

Install WEKO module

Login to the NC2 and click Control Panel in the header menu.

...

If you can find the word "Succesfully installed." at the end of the install log,  congratulations!
Installation WEKO into the NC2 has been completed.

Customization for Multilingual

Only English, Chinese and Japanese are available by the original NC2. Therefore, we need to apply patch for more multilingual function. First you need to checkout the patch and just copy it to the NC2 application directory.

...

Code Block
languagetext
mysql -u nc2user -pnc2pass
MariaDB [nc2db]> use nc2db
MariaDB [nc2db]> source AddLanguageForNC2SQL.sql

Completed!

Show WEKO Block

Go to the NC2 top page and click "Setting mode on" link in the header.
After switching to the Setting Mode, you can select WEKO module in the drop down menu.

...

Now you paste WEKO module on the top page. Here is the control panel page of WEKO.
In order to show the language select function, please click the "management" tab.

Setting up for the External Commands

In the [Management] => [Server Setting] tab, you can find "Server Environment" menu.
Clicking the [Execute]  button automatically search the commands and change signal color to green if the system has.
In order to store the path to the commands, click the [Commit] button after this operation. 

 

Show WEKO Language Selection Box

In the [Management] => [Display Setting] tab, you can find "language setting" menu.
In this menu, that is, [language setting] => [select language setting], please select "Display" (default is "Hide") from the drop down list.

...