インストール
事前準備
tomcat
tomcatをインストールしておく。
tomcat6でもtomcat7でも動作するが、設定を少し変える必要がある。
yum install tomcat
postgresql
postgresqlをインストールしておく。
yum install postgresql-server
ダウンロード
http://sourceforge.net/projects/libreplan/files/LibrePlan/
- libreplan_x.x.x.war
- install_x.x.x.sql
があればよい。
設置
データベース作成
CREATE DATABASE libreplan; CREATE USER libreplan WITH PASSWORD 'libreplan'; GRANT ALL PRIVILEGES ON DATABASE libreplan TO libreplan;
テーブル作成
psql -U libreplan < install_x.x.x.sql
tomcat設定ファイル作成
vim /etc/tomcat/Catalina/localhost/libreplan.xml
libreplan.xml は設置するwarファイルと同じ名前にする。
- tomcat6
<?xml version="1.0" encoding="UTF-8"?> <Context antiJARLocking="true" path=""> <Resource name="jdbc/libreplan-ds" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="libreplan" password="libreplan" driverClassName="org.postgresql.Driver" url="jdbc:postgresql://localhost/libreplan" /> </Context>
- tomcat7
tomcat6の場合とは、JDBCのFactoryの指定が増えている。
<?xml version="1.0" encoding="UTF-8"?> <Context antiJARLocking="true" path=""> <Resource name="jdbc/libreplan-ds" auth="Container" type="javax.sql.DataSource" factory="org.apache.commons.dbcp.BasicDataSourceFactory" maxActive="100" maxIdle="30" maxWait="10000" username="libreplan" password="libreplan" driverClassName="org.postgresql.Driver" url="jdbc:postgresql://localhost/libreplan" /> </Context>
jdbcドライバの設置
ln -s /usr/share/java/postgresql-jdbc3.jar /usr/share/tomcat/lib/
warファイルの設置
cp libreplan_x.x.x.war /var/lib/tomcat/webapps
tomcat再起動
この時、DISPLAY環境変数が定義されている誤作動を起こすので
unset DISPLAY /etc/init.d/tomcat restart
設定
[カテゴリ: ツール > プロジェクト管理]
[通知用URL]
Tweet
最終更新時間:2015年12月23日 18時46分22秒