CentOS 7 with MariaDB
メタデータの末尾にスキップ
メタデータの先頭に移動

OS

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

After installing the OS, please change the SELinux setting to be Permissive or Disable.
Configuration file is located at /etc/sysconfig/selinux

The above setting allow you to boot the system as Permissive mode.
 Please also change the current mode to be Permissive.

Next is the firewall setting. Install the firewalld and allow http and httpd.


Middleware Installation

Web Server and PHP

Install Apache and PHP.

MariaDB and Full Text Search Engine

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
MariaDB a superset Mroonga from version 10 as a plugin.

Create /etc/yum.repos.d/mariadb.repo by editor.
Set the MariaDB installation destination.

Install MariaDB and Mroonga.

Other Middleware

Library for extract the text from PDF file.

Library for making PDF thumbnail

Library for analyzing the search keyword from a external search engine.

Library for showing multimedia contents.

Library for extracting the Word text.

Save as "wv-1.2.4.tar.gz" to get the source code from https://sourceforge.net/projects/wvware/files/wv/1.2.4/.

Library for extracting the Excel and Power Point text.

Library for making PDF cover page.

Middleware Setup and Configuration

Database

Setup root password
Delete anonymous user from the initial database.
Create database for WEKO(NetCommon) installation
Create an database user and assign the privilege to the previously created db.

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,

Configure for UTF-8 character code .

You also need to specify the timezone in the /etc/php.ini

NetCommons2

Before Install Preparation

Install wget first.

Download the latest NetCommons core package (Following command download version 2.4.2.1).

Uncompress the downloaded file.

Copy it to the web application directory.

Change file owner to be able to access by web server

If you would like to access to NetCommons as a top page, you should modify /etc/httpd/conf/httpd.conf as follows.

This is not a requirement, however, if you add the following expression in the httpd.conf, you can utilize the URL-rewrite option in OAI-PMH Configuration.

Please refer to User Manual (3.2.9.3.3 OAI-PMH Configuration) to know how to utilize this .htaccess configuration.

Then restart the 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.

Press Next button.

This step requires to input general configuration parameters like this.

ParamterValue
Site Name"as you want"
Databasemysqli
Database Hostnamelocalhost
Database Usernamenc2user
Database Passwordnc2pass
Database Namenc2db
Table Prefixnc2
No
NetCommons Virtual Path"your server address"

 

Just need to confirm your parameters. Press Next if it is OK.

Green signal means there is no problem with your installation process so far, then Next.

Here is also then press Next.

Here is also then press Next.

Here is also then press Next.

Here is also then press Next.

In this page, you will create an administrator account.

Press Next button, if there is no problem.

Press Next button, if there is no problem.

Congratulations! Installation of NetCommons2 has been completed.

 

WEKO

Download WEKO module

Download the latest stable WEKO from the code repository.

Download multilingual WEKO from the code repository as well, then copy it to the NC2 module directory.

Install WEKO module

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

Click the "Module Manager" icon, then you can find WEKO in the "Modules not yet installed" tab.
Let's click "Install" link which located right hand side of WEKO module name.

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.

MySQL DB also have to be modify for this customization.
In this SQL file database prefix for NC2 is assumed as "nc2" as has been instructed previously.
If you apply different prefix, please modify SQL file appropriately.

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.


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. 

 

 

Setting up for the Language Selection

In order to show the language select function, please click the "management" tab.

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.

 

 

Then click "commit" button at the bottom of the page.

 

 

You can exit from the control panel by clicking "Quit" link at the right hand side of the WEKO block header.

 

 

For multilingual, web page for each language have to be prepared by the following procedure.

  1. As same as showing the WEKO block, go to Setting Mode and show language and menu module.
  2. In the language module, select the language which can to be selected in your page.
  3. After selecting an language, create a new page under the public space by using the menu module.
  4. In the page created in 2, show WEKO block.
  5. Same procedure have to be repeated for other language. 

Finish!

  • ラベルなし