Source Document Steps To Install Xplanner+: Option 1: New User Creation

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Source document http://sourceforge.net/apps/mediawiki/xplanner-plus/index.php?

title=Installation_how_tos Steps to install Xplanner+ Pre-requisite Need apache, mysql to be installed Install required packages sudo apt-get install tomcat6 tomcat6-admin sudo apt-get install openjdk-6-jdk Configure mysql Option 1: New user creation mysql -u root -p create database xplanner; grant all privileges on xplanner.* to xplanner@localhost identified by 'xp'; Option 2: Migrate from another server mysql -u root -p < xplanner-mysql-backup.sql mysql -u root -p grant all privileges on xplanner.* to xplanner@localhost identified by 'xp'; Configure tomcat Add user/role Edit /etc/tomcat6/tomcat-users.xml and add the role manager and a new user with that role. Your tomcat-users.xml should look similar to this now: <?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="tomcat"/> <role rolename="role1"/> <role rolename="manager"/> <user username="tomcat" password="tomcat" roles="tomcat"/> <user username="mangr" password="password" roles="manager"/> <user username="both" password="tomcat" roles="tomcat,role1"/> <user username="role1" password="tomcat" roles="role1"/> </tomcat-users> Configure policy Edit file /etc/tomcat6/policy.d/04webapps.policy and add following permissions permission javax.security.auth.AuthPermission "modifyPrincipals"; permission java.net.SocketPermission "127.0.0.1:3306","connect, resolve"; permission java.net.SocketPermission "localhost:9090","connect,resolve"; permission java.lang.RuntimePermission "getProtectionDomain"; permission java.lang.RuntimePermission "shutdownHooks";

permission java.lang.RuntimePermission "accessClassInPackage.org.apache.jasper.el"; permission java.lang.RuntimePermission "accessClassInPackage.org.apache.coyote"; permission java.lang.RuntimePermission "accessClassInPackage.javax.el"; permission java.lang.reflect.ReflectPermission "suppressAccessChecks"; permission java.lang.RuntimePermission "accessDeclaredMembers"; permission java.io.FilePermission "/var/lib/tomcat6/webapps/xplanner-plus/xplanner-plusactivity.log", "read,write"; permission java.io.FilePermission "*","read"; permission java.io.FilePermission "/usr/share/tomcat6/common/-","read"; permission java.io.FilePermission "/usr/share/tomcat6/bin/bootstrap.jar", "read"; permission java.io.FilePermission "/usr/share/java/commonsdaemon.jar", "read"; permission java.io.FilePermission "/var/lib/tomcat6/webapps/xplanner-plus/WEBINF/classes/logging.properties","read"; permission java.util.PropertyPermission "*","read,write"; permission java.net.SocketPermission "jakarta.apache.org:80","connect,resolve"; Install xplanner+ + Download the xplanner+ war file from sf.net + Deploy the war file firefox http://<hostname>:8080/manager/html Enter the manager username/password Deploy the war file stored in your system Configure xplanner Configure xplanner+ to use mysql instead of HSQLDB Edit the file /var/lib/tomcat6/webapps/xplanner-plus/WEB-INF/classes/xplanner-custom.properties Uncomment properties for MYSQL, and you should have the following; ## XPlanner hibernate configuration hibernate.dialect=com.technoetic.xplanner.db.hibernate.XPlannerMyS QLDialect hibernate.connection.driver_class=com.mysql.jdbc.Driver hibernate.connection.dbname=xplanner hibernate.connection.url=jdbc:mysql://localhost/xplanner hibernate.connection.username=xplanner hibernate.connection.password=xp hibernate.show_sql=false xplanner.migration.databasetype=mysql and comment properties for HSQLDB; # Hibernate HSQLDB Configuration - embedded persistent HSQLDB #hibernate.dialect=net.sf.hibernate.dialect.HSQLDialect

#hibernate.connection.url=jdbc:hsqldb:file:hsqldb/xplanner #hibernate.connection.driver_class=org.hsqldb.jdbcDriver #hibernate.connection.username=sa #hibernate.connection.password= # TODO(PATCH) Find a way not to repeat these migrations for all databases but work on a global database mode that select Dialect, migration database type, patch path... #xplanner.migration.databasetype=hsqldb #xplanner.migration.patchpath=patches/hsqldb:com.technoetic.xplann er.upgrade:com.technoetic.xplanner.security.install

You might also like