0% found this document useful (0 votes)
179 views4 pages

Fedena Installation Guide

This document provides instructions to install Fedena, an open source learning management system, on Ubuntu. It describes 10 steps: 1) installing Ruby dependencies, 2) installing Rails, 3) installing MySQL, 4) downloading and extracting Fedena, 5) configuring the database, 6) setting up Fedena databases, 7) configuring PDF settings, 8) configuring image uploads, 9) configuring email, and 10) optionally configuring SMS and starting the Mongrel server.

Uploaded by

Team Thunder
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
179 views4 pages

Fedena Installation Guide

This document provides instructions to install Fedena, an open source learning management system, on Ubuntu. It describes 10 steps: 1) installing Ruby dependencies, 2) installing Rails, 3) installing MySQL, 4) downloading and extracting Fedena, 5) configuring the database, 6) setting up Fedena databases, 7) configuring PDF settings, 8) configuring image uploads, 9) configuring email, and 10) optionally configuring SMS and starting the Mongrel server.

Uploaded by

Team Thunder
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Install Fedena on Ubuntu 12.04,14.04,15.04 or 16.

04

This is for those who want all 100% working step for Fedena or Fedena Pro Installation.

First of all we have to install Ruby so starting from here, suppose you are root user with # prompt if not
the have to type sudo before all commands.

1. Install Ruby Dependancies

 apt-get update
 apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev
libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
Install Ruby Using RVM
 apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
 curl -L https://get.rvm.io | bash -s stable
 source /usr/local/rvm/scripts/rvm
 echo "source /usr/local/rvm/scripts/rvm" >> ~/.bashrc
 rvm install 1.8.7
 rvm use 1.8.7 --default
 ruby -v
Now Ruby installed so we have to install rails

2. Install Rails 2.3.5


gem install rails -v 2.3.5 --no-rdoc --no-ri

Install the remaining gems


gem uninstall -i /usr/local/rvm/gems/ruby-1.8.7-head@global rake
gem install rake -v 0.8.7
gem install declarative_authorization -v 0.5.1
gem install i18n -v 0.4.2
gem install mysql
gem install rush -v 0.6.8
gem update --system 1.3.7

for fedena pro you need few more gems, you may know about those gems when you will apply the below
commands

e.g if you will apply rake db:migrate


fedena will gives you the error that the xyz gem is required so you will have to install that gem

3. Installing MySQL server Fedena


apt-get install libmysqlclient-dev mysql-server

During installation it will ask for root password, remember that so u will need it later in database.yml

4. Download Fedena or Copy in folder if you already have, unzip if its zipped.

for unzip install unzip by typing apt-get install unzip


then type unzip fedena.zip if the zipped file name is fedena

5. Setup your database details in the database.yml


 it can be found in config directory withing fedena root directory

nano config/database.yml

database: fedena - The name of the database you want to use for fedena

username: root - Mysql username for fedena

password: mypass - MySql root  password if the above mysql user is root else accordingly

If db:migrate create error "Mysql::Error: All parts of a PRIMARY KEY must be NOT NULL; if you need
NULL in a key, use UNIQUE instead" that is almost because of the mysql verion then follow the below
steps.

In config/initializers/    create a file abstract_mysql_adapter.rb


paste the below code and save

class ActiveRecord::ConnectionAdapters::MysqlAdapter
NATIVE_DATABASE_TYPES[:primary_key] = "int(11) auto_increment PRIMARY KEY"
end
now run rake db:migrate and its done

6. Now set up Fedena databases


From the Fedena source directory in terminal run,

rake db:create
rake db:migrate

rake fedena:plugins:install_all

7. Set up pdf setings


apt-get install wkhtmltopdf
cd config/initializers
Change wicked_pdf.rb.example file name to wicked_pdf.rb if not there.
cp wicked_pdf.rb.example wicked_pdf.rb
edit wicked_pdf.rb
nano wicked_pdf.rb
change :wkhtmltopdf => ‘/opt/wkhtmltopdf’, to :wkhtmltopdf => ‘/usr/bin/wkhtmltopdf’,
save the file by pressing ctrl+O
and exit by pressing ctrl+X

8. Image upload settings

 apt-get install imagemagick


 apt-get install libmagickwand-dev
 gem install rmagick
9. Setup Email
cd config
cp smtp_settings.yml.example smtp_settings.yml
nano smtp_settings.yml

for example you want gmail as your email sender and receiver then change smtp_settings.yml to below,
you also have to less the security of gmail account for using with fedena.

development:
      :enable_starttls_auto: true
      :address: smtp.gmail.com
      :port: 587
      :user_name: usename(gmail)
      :password: password(gmail)
      :authentication: plain

test: &test
      :enable_starttls_auto: true
      :address: smtp.gmail.com
      :port: 587
      :user_name: username
      :password: password
      :authentication: plain

production:
      :enable_starttls_auto: true
      :address: smtp.gmail.com
      :port: 587
      :user_name: usename(gmail)
      :password: password(gmail)
      :authentication: plain

cucumber:
  <<: *test

save by ctrl+O and exit by ctrl+X

10. Setup Sms
First of all make your server as sms gateway by installing a software and use a gsm modem or you
mobile as gsm modem.
the best software you can use for sms gateway is kannel. needs few changes to work after installation.

Kannel configuration can be found here

cd config
nano sms_settings.yml
Add below settings

additional_parameters: "flash=0"
sms_settings:
 username: Kanneluser
 password: KannelPassword
 sendername: Fedena
 host_url: http://127.0.0.1:13013/cgi-bin/sendsms
 success_code: "ok"

# dont change below settings


parameter_mappings:
 username: username
 password: password
 sendername:
 message: text
 phone: to

Finally install the mongrel server to run fedena

gem install mongrel

below are the commands to start mongrel_rails server

mongrel_rails start
will start fedena in development mode on port 3000 which is default so you can access in browser by

http://localhost:3000
or
x.x.x.x:3000 (ip of your server)

mongrel_rails start -p 1122

http://localhost:1122
or
x.x.x.x:1122(ip of your server)

mongrel_rails start -e production -p 1122

will start fedena in production mode

http://localhost:1122
or
x.x.x.x:1122(ip of your server)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy