RBE10K/Libreplan/Installation
From The Crowdsourced Resource-Based Economy Knowledgebase
The installation instructions for Libreplan on Gentoo/Tomcat-7 are the following, based on the instructions found here: http://ask.libreplan.org/questions/564/install-on-gentoo-or-sabayon
Contents |
Install dependencies
emerge -a commons-dbcp commons-pool tomcat jdbc-postgresql postgresql-server
Create Tomcat instance
/usr/share/tomcat-7/gentoo/tomcat-instance-manager.bash --create
Optionally add --suffix libreplan at the end of the previous statement to create an independent Tomcat-7 installation specific for use with Libreplan. In that case replace any following /var/lib/tomcat-7 with /var/lib/tomcat-7-libreplan.
Add necessary jars
ln -s /usr/share/jdbc-postgresql/lib/jdbc-postgresql.jar /usr/share/tomcat-7/lib/ ln -s /usr/share/commons-dbcp/lib/commons-dbcp.jar /usr/share/tomcat-7/lib/ ln -s /usr/share/commons-pool/lib/commons-pool.jar /usr/share/tomcat-7/lib/
Create the database
su postgres -c psql CREATE DATABASE libreplan; CREATE USER libreplan WITH PASSWORD 'libreplan'; GRANT ALL PRIVILEGES ON DATABASE libreplan TO libreplan;
Fetch Libreplan files from its website
Now download the latest libreplan.war and install.sql and rename them to libreplan.war and install.sql.
Install the database
psql -h localhost -U libreplan -W libreplan < install.sql
Install the web application
cp libreplan.war /var/lib/tomcat-7/webapps/
Configure Libreplan
Edit /etc/tomcat-7-libreplan/Catalina/localhost/libreplan.xml and paste this in it:
<?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>
NOTE THE LINE THAT HAS TO BE PRESENT: factory="org.apache.commons.dbcp.BasicDataSourceFactory"
Start the application
/etc/init.d/tomcat-7 start