Fedena Installation Guide
Fedena Installation Guide
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.
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
for fedena pro you need few more gems, you may know about those gems when you will apply the below
commands
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.
nano config/database.yml
database: fedena - The name of the database you want to use 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.
class ActiveRecord::ConnectionAdapters::MysqlAdapter
NATIVE_DATABASE_TYPES[:primary_key] = "int(11) auto_increment PRIMARY KEY"
end
now run rake db:migrate and its done
rake db:create
rake db:migrate
rake fedena:plugins:install_all
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
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.
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"
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)
http://localhost:1122
or
x.x.x.x:1122(ip of your server)
http://localhost:1122
or
x.x.x.x:1122(ip of your server)