Koozali.org: home of the SME Server
Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: ocascante on March 03, 2010, 09:15:39 PM
-
HI,
I did try to install freepbx on sme server 7.4 without success. First i had problems with the kernel version, then with the dahdi version, and finally i have this error: fatal: cannot find freepbx_engine.
Thanks for any help!!
-
how did you try to install it?
did you read this (http://wiki.contribs.org/FreePBX) wiki page?
-
Yes, i did it. And a lot of internet pages more.
I have more than 6 days trying to install asterisk and freepbx.
The wiki page is incomplete or was written for a previous version i think.
I don't want to install Sail, just freepbx with asterisk.
-
in this case report to bugzilla and the mantainer of the contrib
-
Well, is not a solution... but first i think the question is: someone has had success installing freepbx on sme server 7.4.
-
Well, of course it's working. I use it on several production servers, and it's working great. There's just a little problem with the asterisk dependency for the moment (because ATRPMs packages has been renamed). But there's a version in smetest which should solve this. Just try (after having configured the fws repo as explained in the Wiki page http://wiki.contribs.org/FreePBX):
yum --enablerepo=fws install dahdi-linux-kmdl-$(uname -r)
yum --enablerepo=smecontribs --enablerepo=smetest install smeserver-freepbx
signal-event freepbx-update
Regards
-
Thanks for your help
Maybe i am doing something wrong. I did configure the fws repo. When i try to install dahdi-linux-kmdl- with the kernel version, i have an error: "missing dependency dahdi-linux = 2.2.0.2-65.e 4
If i try "yum --enablerepo=fws install dadhi-linux dahdi-linux-km....... another error apears.
-
And what about this:
yum --enablerepo=smecontribs --enablerepo=fws install dahdi-linux-kmdl-$(uname -r)
yum --enablerepo=smecontribs --enablerepo=smetest install smeserver-freepbx
signal-event freepbx-update
-
The first line shows the same error: missing dependency: dahdi-linux-2.2.0.2-65.el4
-
VIP-ire: just tested myself:
Error: Missing Dependency: dahdi-linux = 2.2.0.2-65.el4 is needed by package dahdi-linux-kmdl-2.6.9-89.0.16.EL
Error: Missing Dependency: asterisk-addons is needed by package smeserver-freepbx
Error: Missing Dependency: asterisk is needed by package smeserver-freepbx
Error: Missing Dependency: /boot/vmlinuz-2.6.9-89.0.19.EL is needed by package dahdi-linux-kmdl-2.6.9-89.0.19.EL
HTH
-
Something funny is that apparently there no such dadhi-linux-2.2.0.2-65.el4.rpm.
-
Ok. as I said before, the problem is that SME Server kernel are not in sync with CentOS ones. If you want to install FreePBX, you'll need to update your kernel to the latest available from smeupdates-testing (2.6.9-89.0.20.EL):
yum --enablerepo=smeupdates-tesing update kernel kernel-smp
Then, you should be able to install dahdi. Of course, installing packages from smeupdates-testing shouldn't be done directly on production system, so be carefull. I use those kernel (from smeupdates-testing) on several servers without problem but...
Regards
-
Ok. as I said before, the problem is that SME Server kernel are not in sync with CentOS ones. If you want to install FreePBX, you'll need to update your kernel to the latest available from smeupdates-testing (2.6.9-89.0.20.EL):
yum --enablerepo=smeupdates-tesing update kernel kernel-smp
Then, you should be able to install dahdi. Of course, installing packages from smeupdates-testing shouldn't be done directly on production system, so be carefull. I use those kernel (from smeupdates-testing) on several servers without problem but...
Regards
well.. is there any difference between kernels in smeupdates-testing and in centos' repo?
I mean:
[root@srvarch .ssh]# yum --enablerepo=centosplus update kernel
]cut[
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
kernel i686 2.6.9-89.0.20.plus.c4 centosplus 15 M
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 15 M
Is this ok [y/N]:
is it ok?
-
I knew it was a kernel problem but made a mistake trying to update it. I used "rpm -Uvh kernel .... " to update sme.
Now i gonna try using using your update instructions.
Thanks again and i will tell you how it works.
-
well.. is there any difference between kernels in smeupdates-testing and in centos' repo?
I mean:
[root@srvarch .ssh]# yum --enablerepo=centosplus update kernel
Yes, there're some differences. Centos plus repo provides different kernels than Centos base repo (well, they are basically the same with the addtionnal support for hardware). DAHDI kernel modules on fws repo are built for centos kernels (those you can find in smeupdates-testing at the moment), not for centosplus ones. If you want to use centospluls kernel (once again, at your own risk), you can find DAHDI kmdl on ATRrpms. See this page for all the available DAHDI kmdl: http://atrpms.net/dist/el4/dahdi-linux/
-
Ok,,,this is the result:
1- Upgrade the kernel using smeupdates-tesing repo. ok
2- yum install dahdi-linux-kmdl-..... from fws repo works correctly
3- yum install smeserver-freepbx from smetest have an error.
4- yum install smeserver-freepbx from smecontribs works correctly.
5- signal-event post-upgrade; signal-event reboot
6- when the system starts an error appears: "fatal can not find freepbx_engine to start asterisk"
Asterisk and freepbx are not running.
-
What was the error message for smeserver-freepbx from smetest ?
For the error about freepbx_egine not found, it looks like you forgot to run signal-event freepbx-update
.
Regards
-
Hi again:
Apparently the repo was down at that time. I could install it from smetest today and have the same error.
Yes, i did a freepbx-update signal, even a post-upgrade and reboot signal.
The same error apears: can not find freepbx_engine.
I was looking at amportal.conf file, I think there might be the error.
My mistake: smetest continue with the error "no match for argument smeserver-freepbx".
I did not realize that i was using "yum install --enablerepo=smecontribs --enablerepo=smetest". The error apears when i use the smetest repo only.
-
SOLVED!! Ok, finally i did it!!
Soon I will explain all the steps to follow to install freepbx, version 2.7.0 on SME Server version 7.4 in case someone is interested.
-
As promised, I write the steps to install the latest version of freepbx (2.7.0) in sme smeserver, version 7.4
- The first step is to upgrade the current kernel version using the procedure written by VIP-ire ( thanks again for your help ):
"yum --enablerepo=smeupdates-testing update kernel kernel-smp"
Now we need to reboot the sistem.
- Install linux-dahdi-kmdl from smecontribs
"yum install --enablerepo=smecontribs linux-dahdi-kmdl-$(uname -r)"
signal-event post-upgrade;signal-event reboot
- Install freepbx from smecontribs
"yum install --enablerepo=smecontribs smeserver-freepbx"
signal-event post-upgrade;signal-event reboot
- Update freepbx
signal-event freepbx-update
There is a problem with the installation script of freepbx. To work properly we need 2 databases, asteriskcdrdb and freepbxdb. The 2 databases are created but empty. The script does not create the tables.
- Create the necessary tables
Find the mysql installations scritps of freepbx, and execute them.
Two scripts are located in the directory /usr/share/freepbx/sources/freepbx-2.5.1/SQL
Go to this folder and at the prompt command type:
mysql freepbxdb < ./newinstall.sql
mysql asteriskcdrdb < ./cdr_mysql_table.sql
These two commands create the necessary tables in the databases.
At this time we have installed freepbx and we can access through the server-manager menu, but there's no modules installed. Because this freepbx version is too old, we cannot update it using the Module Admin option.
Now, we have to update freepbx.
- From command prompt:
cd /usr/src/
wget http://mirror.freepbx.org/freepbx-2.7.0.tar.gz
tar zxvf freepbx-2.7.0.tar.gz
cd freepbx-2.7.0
./start_asterisk start # for upgrades use: amportal start
./install_amp
This is the final step to upgrade freepbx. Now, we have the last freepbx version installed and we can go to Module Admin, from freepbx admin menu and install all the necessary modules.
Finally, I hope you excuse my English.
-
Last problem encountered and solved.
If you get a message from freepbx menu about "agi_bin" module
go into /var/lib/asterisk/bin and change in retrieve_conf the chmod permission where it says "chmod($targetfile,0754);" to "chmod($targetfile,0774);"
If the error persists delete all the files inside /usr/share/asterisk/agi-bin and change to asterisk the owned of agi-bin folder with the x bit set.
-
.... delete all the files inside /usr/share/asterisk/agi-bin and change to asterisk the owned of agi-bin folder with the x bit set.
-
I'm following the instructions from ocascante. When I enter this:
"yum install --enablerepo=smecontribs linux-dahdi-kmdl-$(uname -r)"
I get this"
"No Match for argument: linux-dahdi-kmdl-2.6.9-89.0.25.EL
Nothing to do"
Any ideas?
-
It was my mistake..sorry. The correct name is dahdi-linux-kmdl-$(uname-r)
HTH
-
It was my mistake..sorry. The correct name is dahdi-linux-kmdl-$(uname-r)
HTH
You mean that matters? :)
Thank you very much!
-
It was my mistake..sorry. The correct name is dahdi-linux-kmdl-$(uname-r)
HTH
Still get the error
"No Match for argument: dahdi-linux-kmdl-2.6.9-89.0.25.EL"