RPM repository for ganib installation?

5,776 views

Installation using Yum repository
Requirements : Apache Tomcat 6, MySQL 5.0 or above
Click here for tomcat installation guide.
yum repository: http://mirror.ganib.com/rpms/
1.Edit or create new file in /etc/yum.repos.d/ with name "ganib.repo"
2.Add following lines to ganib.repo.
[Ganib]
name=Ganib | Online Project Management software repository
baseurl=http://mirror.ganib.com/
enabled=1
gpcheck=0

3.Now run below command to install ganib
#yum install ganib

4) Restart tomcat service & now you access ganib using http://localhost:8080/ganib
Installation using rpm command
1) Download latest RPM from http://sourceforge.net/projects/ganib/files/Ganib-1.2/ & install it with RPM command.
 # rpm -ivh path-to-ganib.rpm

Database Installation & configuration

Now you need to import database script files.

    mysql -u root -p
     mysql > CREATE DATABASE ganib CHARACTER SET utf8 COLLATE utf8_general_ci;
     mysql > exit;
     mysql -h localhost -u root -p ganib < /var/lib/tomcat6/webapps/ganib/database/ganib.sql

Now edit /etc/tomcat6/context.xml file to change database connection properties.

<Resource name="jdbc/GanibDB"
             auth="Container"
             type="javax.sql.DataSource"
             username="root" password=""
             driverClassName="com.mysql.jdbc.Driver"
             url="jdbc:mysql://localhost:3306/ganib?autoReconnect=true&amp;amp;useUnicode=true&amp;amp;characterEncoding=utf-8"
             maxActive="125"
         maxIdle="25"
     />

Replace username, password &amp; database name from url.

SMTP
To change SMTP settings you need to edit /etc/tomcat6/context.xml & edit below lines.

<Resource 
name="mail/GanibSession" 
type="javax.mail.Session" 
auth="Container" 
mail.smtp.host="localhost" 
mail.smtp.auth="false" 
mail.smtp.user="username" 
password="password" 
mail.smtp.port="25" 
mail.transport.protocol="smtp" 
/>

Start Ganib

Now you need to restart tomcat with below commands.
  service tomcat6 restart

If everything is configured as per above instructions. you can access it using web browser. Enter below url in web browser.

 http://localhost:8080/ganib/

Replace "localhost" with your system IP address. Also you need to replace port no if you've changed it.

asked Jul 29, 2013 by Emily S (820 points)
edited Sep 15, 2014 by Ganib

Please log in or register to answer this question.

...