grantsudoallyumon 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,
Library for showing multimedia contents.You also need to specify the timezone in the /etc/php.ini
コード ブロック
language
text
[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"
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.
コード ブロック
language
text
<Directory /var/www/html/nc2/htdocs>
AllowOverride All
</Directory>
mysql -u root -proot-no-password
MariaDB [(none)]> use mysql
MariaDB [mysql]> delete from user where user='';
Create database for WEKO(NetCommon) installation
コード ブロック
language
text
sudo /etc/init.d/httpd restart
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.
Image Removed
Press Next button.
Image Removed
This step requires to input general configuration parameters like this.
MariaDB [mysql]> create database nc2db default character set UTF8;
Create an database user and assign the privilege to the previously created db.
コード ブロック
language
text
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,
[mbstring]
mbstring.language = neutral
mbstring.internal_encoding = UTF-8
mbstring.http_input = auto
mbstring.http_output = pass
mbstring.encoding_translation = Off
You also need to specify the timezone in the /etc/php.ini
コード ブロック
language
text
[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.
コード ブロック
language
text
sudo yum install -y wget
Download the latest NetCommons core package (Following command download version 2.4.2.1).
Change file owner to be able to access by web server
アンカー
chowntoapache
chowntoapache
コード ブロック
language
text
sudo chown -R apache:apache /var/www/html/nc2
If you would like to access to NetCommons as a top page, you should modify /etc/httpd/conf/httpd.conf as follows.
コード ブロック
language
text
DocumentRoot "/var/www/html/nc2/htdocs"
アンカー
allowoverride
allowoverride
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.
コード ブロック
language
text
<Directory "/var/www/html/nc2/htdocs">
AllowOverride All
</Directory>
Then restart the httpd
コード ブロック
language
text
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.
Image Added
Press Next button.
Image Added
This step requires to input general configuration parameters like this.
Paramter
Value
Site Name
"as you want"
Database
mysqli
Database Hostname
localhost
Database Username
nc2user
Database Password
nc2pass
Paramter
Value
Site Name
"as you want"
Database
mysqli
Database Hostname
localhost
Database Username
nc2user
Database Password
nc2pass
Database Name
nc2db
Table Prefix
nc2
No
NetCommons Virtual Path
"your server address"
...
Congratulations! Installation of NetCommons2 has been completed.
WEKO
...
Download WEKO module
In order to download Download the latest stable WEKO module from the source code repository, install the svn first.
Download Checkout multilingual WEKO from the SVN sitecode repository as well, then copy it to the NC2 module directory. The current instruction is to utilize the trunk source code but we will prepare the stable one soon.
Login to the NC2 and click Control Panel in the header menu.
...
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.
コード ブロック
language
text
svn co httpwget -O nc2multilang.tar.gz https://forge.at.nii.ac.jp/svn/nc/nc2multilang/trunk nc2multilang
cd nc2multilangbitbucket.org/niijp/nc2-patch-multilanguage/get/master.tar.gz
tar zxvf nc2multilang.tar.gz
cd niijp-nc2-patch-multilanguage-[commit number]
sudo cp -rp webapp /var/www/html/nc2/
...
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. Image Removedpage of WEKO.
Setting up for the External Commands
In the [managementManagement] => [display settingServer 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.
Image Removed
Then click "commit" button at the bottom of the page.
Image Removed
You can exit from the control panel by clicking "Quit" link at the right hand side of the WEKO block header.
Image Removed
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.
# This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux security policy is enforced.# permissive - SELinux prints warnings instead of enforcing.# disabled - No SELinux policy is loaded.SELINUX=Permissive# SELINUXTYPE= can take one of these two values:# targeted - Targeted processes are protected,# mls - Multi Level Security protection.SELINUXTYPE=targeted
sudo yum install mysql-server
WEKO utilize
...
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.
Image Added
Setting up for the Language Selection
In order to show the language select function, please click the "management" tab. Image Added
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.
Image Added
Then click "commit" button at the bottom of the page.
Image Added
You can exit from the control panel by clicking "Quit" link at the right hand side of the WEKO block header.
Image Added
For multilingual, web page for each language have to be prepared by the following procedure.
As same as showing the WEKO block, go to Setting Mode and show language and menu module.
In the language module, select the language which can to be selected in your page.
After selecting an language, create a new page under the public space by using the menu module.
In the page created in 2, show WEKO block.
Same procedure have to be repeated for other language.