Extended(updated) Install Centos 6.x (and probably others)

Post queries and issues that you found during ictfax installation

Extended(updated) Install Centos 6.x (and probably others)

Postby Irelandfan » Tue Jun 11, 2013 10:58 pm

Tested on Centos 6.x minimal install

After install Centos 6.x minimal is completed an rebooted and you're logged in again:

Issue
Code: Select all
yum -y update
yum -y install wget
yum -y install gcc
yum -y install nano
yum -y install gcc-c++
yum -y install unzip
(This last one probably tells you already installed)
Issue
Code: Select all
cd /usr/src


First download latest ictfax package from this page
Code: Select all
wget http://sourceforge.net/projects/ictfax/files/latest/download

Follow normal installation guide from the start untill it reads:

Code: Select all
following dependencies are required for Freeswitch installations


Issue
Code: Select all
yum -y install php-xml
yum -y install php-mbstring

(If not, Drupal will give a "dom" error and "mbstring" error later on)
Continue from
Code: Select all
following dependencies are required for Freeswitch installations

untill
Code: Select all
Locate the folder "plivo-devel" in the extracted ICTFax directory.

Issue
Code: Select all
cd /usr/src
ls
tar xvzf ictfax*

or
Code: Select all
unzip ictfax*
if you downloaded the zip file
then issue
Code: Select all
cd ictfax*


Continue installation from "Setup and Run Plivo Framework"

Step 1 is not neccesary on a fresh install but if so:
ps -f |grep plivo
If it returns something like "ps -ef grep plivo" continue
If it returns 2 lines that contains like
Code: Select all
root 8845  /usr/local/plivo/bin/python /something/default.conf /something/rest-default.pid

Code: Select all
root 8846  /usr/local/plivo/bin/python /something/default.conf /something/outbound-default.pid

issue:
Code: Select all
kill -9 (pidnumber)
for the first line
and for the 2nd line.
Pidnumber is the first number after the word "root" or whatever user it's running as (In this case user "root" and pidnumber 8845)
In my case i should issue
kill -9 8845
kill -9 8846
To let you think and for safety I deliberately did not made those last one code!!
step 2:
Issue
Code: Select all
cp -R plivo-devel /usr

(Issue "\cp -R plivo-devel /usr" (without the quotes but with the \ in front of cp)in case you want to do it again and don't want to answer "y" manually to all the files)
Step 3
Issue
Code: Select all
cd /usr/plivo-devel

Code: Select all
./plivo_install.sh /usr/local/plivo
(That's a .(dot) in front)
Step 4....take a coffee or sigaret or beer.There is no step 4 :-)
Step 5
Issue
Code: Select all
cd /usr/local/plivo/bin

Code: Select all
./plivo start
(That's a .(dot) in front)

Continue to "plivo configurations"
Step 1.
Issue
Code: Select all
nano /usr/local/plivo/etc/plivo/default.conf

Issue ctrl+w, insert-text-to-find in the white bar underneath and press (enter) (=find function) and find whatever you have to edit.
Example: ctrl+w, EXTRA_FS_VARS (enter)
Repeat and replace or delete what's needed in step 2 and 3.

Step 4.
Find DEFAULT_ANSWER_URL, (you now know how, ctrl+w remember?)
Fastest way after here: Put your cursor in front of #DEFAULT_ANSWER_URL and press ctrl+k. This will delete the line.
Copy the line DEFAULT_ANSWER_URL = http://127.0.0.1/ictfax/index.php?q=ictfax/receive_fax there.
Replace your.domainname.com inside DEFAULT_ANSWER_URL = http://your.domainname.com/ictfax/index ... eceive_fax
with your domainname or IP-address-of-the-server.
Repeat for DEFAULT_HANGUP_URL.

Issue ctrl+o (enter) inside nano. That saves the file.
Issue ctrl+x to return to commandline
Reread "plivo configurations" and check if everything is ok.

Continue to "ICTFAX Installation
Issue
Code: Select all
mysql
and press enter
Issue
Code: Select all
create database ictfax;

If ok it will say "OK" somewhere along the line
Issue
Code: Select all
CREATE USER 'ictfaxuser'@'localhost' IDENTIFIED BY 'some-password';

Replace password with something else ofcourse. Write it down.
Just for the record: Did you replace password with something else? Wrote it down? Did it say "OK" somewhere afterwards?
Continue.
Issue
Code: Select all
 GRANT all ON ictfax TO ‘ictfaxuser’@'localhost’;

Issue
Code: Select all
 FLUSH PRIVILEGES;

Issue
Code: Select all
exit
That brings you back to the commandline
Continue to "4.2: Frontend / Web GUI"
Issue
Code: Select all
cd /usr/src/ictfax

Code: Select all
mv /usr/src/ictfax/wwwroot /usr/ictfax

Continue to step 1.

!!Before step 2!! issue
Code: Select all
mkdir /var/www/html/ictfax/sites/default/files

Code: Select all
cp /var/www/html/ictfax/sites/default/default.settings.php /var/www/html/ictfax/sites/default/settings.php


and Issue
Code: Select all
chown -R apache.apache /var/www/html

Or installation will complain about not writable directories or not existing directories or that settings.php does not exist
If everything went ok you are able to continue installation untill it asks for database name, username and password.
Database name is ictfax, username is ictfaxuser and you wrote down the password (See the part ICTFAx installation a few lines above)
You wrote it down did you? :-)
Let it run and continue the official installation.
Write down the maitanance account and password. Don't forget.

You will run into a few "where the hell is this?" if following the official install from here but just click around and you will find it. Or just ask here.

If anyone has updates feel free.
Irelandfan
 
Posts: 1
Joined: Tue Jun 11, 2013 8:30 pm

Re: Extended(updated) Install Centos 6.x (and probably other

Postby falak » Thu Jun 13, 2013 5:36 am

This is excellent information. I hope some of the steps could be included to improve installation guide of ICTFAX.
falak
Site Admin
 
Posts: 168
Joined: Tue Jan 17, 2012 7:33 am

Re: Extended(updated) Install Centos 6.x (and probably other

Postby buecker » Sat Apr 26, 2014 11:33 pm

Probably very minor for someone with lots of mysql experience but definitely overlooked by me.

1. I had to type in USE ictfax before I could assign permissions.
2. The GRANT line should have a .* after the database.

Code: Select all
GRANT all ON ictfax.* TO 'faxusername'@'localhost';



I ran into tons of issues and hours of troubleshooting just to get to this point but your guide definitely help. Thank you.
buecker
 
Posts: 1
Joined: Sat Apr 26, 2014 11:28 pm


Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest

cron