Oct 25, 2007
NetCommons にチャレンジ
NetCommons とは
NetCommons というのは
このサイトは国立情報学研究所が次世代情報共有基盤システムとして開発したNetCommonsの公式サイトです。
NetCommonsはCMS(Contents Management System)とLMS(Learning Management System) とグループウェアを統合したコミュニティウェアです。NetCommonsによって簡単に構築できるサイトとして、 次のようなものが挙げられます。というものだそうだ。Xoops ベースで構築されているとのこと。 LMS のシステムは今まで触ったことが無かったので試してみた。
- e-ラーニングサイト
- NPOやNGOのためのバーチャルオフィス
- 共同研究・学会活動のポータルサイト兼グループウェア
- オフィス用グループウェア
- ソーシャルネットワークサービス
- NetCommons
- http://www.netcommons.org/
NetCommons のインストール
NetCommons には MySQL, PHP, Apache Web Server が必要。 それだけ揃えてしまえば、後は tar ball を拾ってきてインストーラを実行するだけ。 以下は Debian Etch 環境にインストールしたときのメモ。
環境の準備
MySQL 5, PHP5 をインストール。Apache Web Server は 2.x がインストール済みだったのでそのまま利用。
# apt-get install mysql-server-5.0 php5 php5-mysql libapache2-mod-php5 Reading package lists... Done Building dependency tree... Done # mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8 Server version: 5.0.32-Debian_7etch1-log Debian etch distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> create database netcommons; Query OK, 1 row affected (0.00 sec) mysql> grant all on netcommons.* to netcommons identified by 'netcommons'; Query OK, 0 rows affected (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) mysql> exit Bye # cp /etc/php5/apache2/php.ini /etc/php5/apache2/php.ini.original # vi /etc/php5/apache2/php.ini # diff /etc/php5/apache2/php.ini.original /etc/php5/apache2/php.ini 599c599 < ;extension=mysql.so --- > extension=mysql.so # /etc/init.d/apache2 restart Forcing reload of web server (apache2)... waiting . #
NetCommons の設置
NetCommons をダウンロードしてきて設置。 *.php ファイルが EUC-JP の CRLF になっていたので EUC-JP の LF に変換した。
# wget http://www.netcommons.org/modules/cabinet/downloadnum_add.php? path=%2Fcabinet%2F3%2F%A5%B3%A5%A2%A5%D1%A5%C3%A5%B1%A1%BC%A5%B8%CD% D1%2FNetCommons-1.1.2%2FNetCommons-1.1.2.tar.gz&file_id=1941 [1] 2621 # tar zxvf ./NetCommons-1.1.2.tar.gz ./NetCommons-1.1.2/ ./NetCommons-1.1.2/html/ # cd ./NetCommons-1.1.2 # cp -r ./html ./html.converted # cd ./html # for i in `find . -name '*.php'`; do nkf -Lu -e $i > ../html.converted/$i; done # mv ./NetCommons-1.1.2/html.converted /var/www/netcommons # chmod 777 -R /var/www/netcommons/uploads/ /var/www/netcommons/cache/ /var/www/netcommons/templates_c/ /var/www/netcommons/themes/
NetCommons のインストール
"http://example.com/netcommons/" にアクセスしてインストーラを起動する。
NetCommons インストールの後片付け
インストーラの削除と設定ファイルの権限変更を行う。
# rm -rf /var/www/netcommons/install/ # chmod 444 /var/www/netcommons/mainfile.php #
NetCommons にアクセス
"http://example.com/netcommons/" にアクセスする。
とりあえずインストール時に設定した管理者でログイン。
とりあえずは動いたが、何故か管理室に入ることが出来なかった。
NETCOMMONS_SYSTEM_PATH というグローバル変数(?) がセットされていないのだが・・・。
何故?? (面倒なので調べていないw)
TrackBack ping me at
http://www.in-vitro.jp/blog/index.cgi/Misc/20071025_01.trackback
writeback message: Ready to post a comment.
