目次 |
---|
OS
Following instruction is based on the CentOS6 installation as Minimal package.
Network connection is required in the following procedure.
Edit /etc/sysconfig/network-scripts/ ifcfg-eth0 to be ONBOOT=yes.
...
コード ブロック | ||
---|---|---|
| ||
sudo yum -y install dbus dbus-python sudo service messagebus start |
Middleware Installation
Web Server and PHP
コード ブロック | ||
---|---|---|
| ||
sudo yum install -y httpd sudo yum install -y php php-mbstring php-gd php-xml sudo service httpd start |
...
コード ブロック | ||
---|---|---|
| ||
sudo yum install -y poppler-utils |
Other Middleware
Library for making PDF thumbnail
...
コード ブロック | ||
---|---|---|
| ||
sudo yum install -y ffmpeg |
Middleware Setup and Configuration
Database
Setup root password
コード ブロック | ||
---|---|---|
| ||
sudo /etc/init.d/mysqld start /usr/bin/mysqladmin -u root password 'root-no-password' |
...
コード ブロック | ||
---|---|---|
| ||
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,
...
コード ブロック | ||
---|---|---|
| ||
sudo /etc/init.d/httpd restart |
NetCommons2
Before Install Preparation
Install wget first.
コード ブロック | ||
---|---|---|
| ||
sudo yum install -y wget |
...
コード ブロック | ||
---|---|---|
| ||
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.
...
Then replace it to the /var/www/html/nc2/maple/nccore/db/DbObjectAdodb.class.php
WEKO
Checkout WEKO module
In order to download the latest WEKO module from the source code repository, install the svn first
...
コード ブロック | ||
---|---|---|
| ||
svn co http://forge.at.nii.ac.jp/svn/nc/repository/trunk repository sudo cp -rp repository /var/www/html/nc2/webapp/modules/ |
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.
...
コード ブロック | ||
---|---|---|
| ||
mysql -u nc2user -pnc2pass mysql> use nc2db mysql> 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.
...