You are on page 1of 35
gerardinho, welcome back • Home • Download • Support • Community • Distro • Store

gerardinho, welcome back

Home

Download

Support

Community

Distro

• Store Search
• Store
Search

in

 

1.

Install CentOS, enabling the following packages:

*DNS Server *Web Server *Mail Server *MySQL Database *Development Tools

yum install nano

reboot

2. Edit Network settings

nano /etc/sysconfig/network

HOSTNAME=internal.hostname.DOMAIN.com (Set your internal hostname name here)

Ctrl-X to save, 'Y' to confirm

nano /etc/sysconfig/network-scripts/ifcfg-eth0

IPADDR=192.168.1.20

NETMASK=255.255.255.0 (Note: set this to an IP-mask matching your net)

(Note: set this to an IP-address matching your net)

GATEWAY=192.168.1.1

gateway)

NETWORK=192.168.1.0

(Note: set this to an IP-address matching your

(Note: set this to an IP-address matching your net)

Ctrl-X to save, 'Y' to confirm

echo "options {" >> /etc/named.conf echo " directory \"/var/named\";" >> /etc/named.conf echo " dump-file \"/var/named/data/cache_dump.db\";" >> /etc/named.conf echo " statistics-file \"/var/named/data/named_stats.txt\";" >> /etc/named.conf echo "}" >> /etc/named.conf echo "include \"/etc/rndc.key\";" >> /etc/named.conf

service named start chkconfig named on

nano /etc/resolv.conf

search internal.DOMAIN.com (Set your internal domain name here)

nameserver 192.168.1.5 nameserver 127.0.0.1

(Set your name server IP-address here)

Ctrl-X to save, 'Y' to confirm

nano /etc/hosts

127.0.0.1

internal.hostname.DOMAIN.com (Set your internal hostname

name here)

127.0.0.1

asterisk1.local

127.0.0.1

localhost

Ctrl-X to save, 'Y' to confirm

iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT iptables -F iptables -X /etc/init.d/iptables save service network restart

3. Update:

yum -y update

4. Disable Selinux:

echo "selinux=disabled" > /etc/selinux/config

reboot

5. Install dependencies and extra packages:

yum install e2fsprogs-devel keyutils-libs-devel krb5-devel libogg libselinux-devel libsepol-

devel libxml2-devel libtiff-devel gmp php-pear php-pear-DB php-gd php-mysql php-pdo

kernel-devel ncurses-devel audiofile-devel libogg-devel openssl-devel mysql-devel zlib-devel perl-DateManip sendmail-cf sox

cd /usr/src

tar

zxvf lame-3.98.4tar.gz

cd

lame-3.98.4

./configure

make

make install

6. Install Asterisk and FreePBX:

cd /usr/src

note: there are later versions of Asterisk, 1.6.2 and 1.8 wget http://downloads.digium.com/pub/asterisk/asterisk-1.4-current.tar.gz

tar

zxvf asterisk-1.4-current.tar.gz

tar

zxvf asterisk-addons-1.4-current.tar.gz

tar

zxvf dahdi-linux-complete-current.tar.gz

note: skip this step if you are not using ISDN

tar

zxvf libpri-1.4-current.tar.gz

tar

zxvf freepbx-2.8.1.tar.gz

cd

/var/lib/asterisk/sounds

tar

zxvf asterisk-extra-sounds-en-gsm-current.tar.gz

cd

/usr/src/dahdi-linux-complete-CURRENT

make

make install

make config

note: skip these step if you are not using ISDN

cd /usr/src/libpri-1.4-CURRENT make clean make make install

cd /usr/src/asterisk-1.4-CURRENT

useradd -c "Asterisk PBX" -d /var/lib/asterisk asterisk mkdir /var/run/asterisk mkdir /var/log/asterisk chown -R asterisk:asterisk /var/run/asterisk chown -R asterisk:asterisk /var/log/asterisk

chown -R asterisk:asterisk /var/lib/php/session/ nano +231 /etc/httpd/conf/httpd.conf Change User apache and Group apache to User asterisk and Group asterisk. Ctrl-X to save, 'Y' to confirm

nano +329 /etc/httpd/conf/httpd.conf Change AllowOverride None to AllowOverride All Ctrl-X to save, 'Y' to confirm

./configure

make

make install

/etc/init.d/mysqld start

cd /usr/src/freepbx-2.8.1

mysqladmin create asterisk mysqladmin create asteriskcdrdb mysql asterisk < SQL/newinstall.sql mysql asteriskcdrdb < SQL/cdr_mysql_table.sql

mysql

GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY 'SOMEPASSWORD'; GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY

'SOMEPASSWORD';

flush privileges;

\q

mysqladmin -u root password 'SOMEPASSWORD'

cd /usr/src/asterisk-addons

./configure

make

make install

cd /usr/src/freepbx-2.8.1

./start_asterisk start ./install_amp --username=asteriskuser --password=SOMEPASSWORD echo "/usr/local/sbin/amportal start" >> /etc/rc.local chkconfig httpd on chkconfig mysqld on Open browser to http://ipaddressofpbx/admin

Click red bar in FreePBX

7. Fix ARI password:

note: in FreePBX 2.8 you do this in /etc/amportal.conf nano -w /etc/amportal.conf

ARI_ADMIN_PASSWORD=SOMEPASSWORD

Ctrl-X to save, 'Y' to confirm

8.

Configure Sendmail:

nano /etc/mail/sendmail.mc define(`SMART_HOST', `relay.DOMAIN.com)dnl MASQUERADE_AS(`pbx.DOMAIN.com')dnl

FEATURE(`masquerade_envelope')dnl Ctrl-X to save, 'Y' to confirm

make -C /etc/mail

9. Edit sip_nat.conf for proper NAT:

note: in FreePBX 2.8 you can download Asterisk SIP Settings module to do this

nano /etc/asterisk/sip_nat.conf

localnet=192.168.1.0/255.255.255.0

externhost=pbx.DOMAIN.com (Set your external hostname name here)

externrefresh=10

fromdomain=DOMAIN.com (Set your external domain name here) nat=yes qualify=yes canreinvite=no

Ctrl-X to save, 'Y' to confirm

10. Add extra codecs to config:

note: in FreePBX 2.8 you can download Asterisk SIP Settings module to do this

nano /etc/asterisk/sip_custom.conf

allow=gsm

allow=h261

allow=h263

allow=h263p

videosupport=yes

Ctrl-X to save, 'Y' to confirm

note: in FreePBX 2.8 you can download Asterisk IAX Settings module to do this nano /etc/asterisk/iax_custom.conf

allow=gsm

allow=h261

allow=h263

allow=h263p

videosupport=yes

Ctrl-X to save, 'Y' to confirm

asterisk -rx reload

11. Edit voicemail config:

nano /etc/amportal.conf If the web interface on your PBX will be accessible on the internet:

AMPWEBADDRESS=pbx.DOMAIN.com (Set your external hostname name here) If the web interface on your PBX will be accessible only on your internal network:

AMPWEBADDRESS=internal.hostname.DOMAIN.com (Set your internal hostname name here) Ctrl-X to save, 'Y' to confirm

or if your users will NOT have access to the web interface:

nano /etc/asterisk/vm_email.inc remove "Visit http://AMPWEBADDRESS/cgi- bin/vmail.cgi?action=login&mailbox=${VM_MAILBOX} to check your voicemail with a web browser.\n" Ctrl-X to save, 'Y' to confirm

nano /etc/asterisk/vm_general.inc

serveremail=pbx@DOMAIN.com to come from fromstring=DOMAIN PBX

Ctrl-X to save, 'Y' to confirm

; Who the e-mail notification should appear

; Real name of email sender

12. Fix MOH directory:

ln -s /var/lib/asterisk/moh /var/lib/asterisk/mohmp3

asterisk -rx reload

14. Open browser to http://ipaddressofpbx

Done!

Optional Package:

ConfControl is a partial rewrite of Web-MeetMe which includes only the conference control page and not all the scheduling options. It includes a replacement index.html page which adds a link to ConfControl from the FreePBX home page.

cd /var/www/html

tar zxvf ConfControl1.0.tar.gz

rm ConfControl1.0.tar.gz

Related Content

Comment viewing options

Threaded list - expanded

Comment viewing options Threaded list - expanded Date - oldest first 50 comments per page S

Date - oldest first

viewing options Threaded list - expanded Date - oldest first 50 comments per page S ave

50 comments per page

list - expanded Date - oldest first 50 comments per page S ave settings Select your

Save settings

Select your preferred way to display the comments and click "Save settings" to activate your changes.

changes. These instructions are outdated and don't work On February 4th, 2008 zeeshan (tadpole) said: Somebody

On February 4th, 2008 zeeshan (tadpole) said:

Somebody seriously need to fix these instructions. They are outdated and don't work.

For example, zaptel doesn't get installed the way it says here (maybe if you have a zaptel device, it will, but for only ztdummy it doesn't). Similarly when you reach to 'mysqld start', you find out that it is not working either, although it is installed on your system. Apparently these instructions were written for some old version of CestOS, not for 5.1. I gave up after trying for a whole day, and will install trixbox instead.

trixbox instead. • • reply They are not that old. A On February 5th, 2008 fskrotzki

On February 5th, 2008 fskrotzki (Contributor) said:

They are not that old. A less then a month old. Some edits just occured a little over a week ago. drmessano I know has several boxes all built after the first of this year using these instructions so they should work.

It is possible that there is a step or two missing by accident. So before accusing somebody of something like posting old instructions it would have been helpful to have posted questions about exactly why your build didn't work at step x, describe what your issue is and how you

ran into it. I know he is a very helpful person and would have gladly responded to any request for more information or help if it was just asked.

Yes last I knew he was using zaptel based hardware so that might be one issue is you are not. The other is it looks like he missed a single line before:

make install that should have:

make to build the zaptel code. Which if you read the README in the zaptel tarball it would have shown you that.

99% of all posts on this site are from fellow users here and you are getting his information for free. So please be kind to others.

another fellow user.

• • reply I used this to install and it worked Sept 2008 On September 28th,

On September 28th, 2008 jpforte (tadpole) said:

Works just great. ztcfg needed a modprobe ztdummy

I started to have problems BUT I DID NOT FOLLOW THE INSTRUCTIONS. When I did it worked. Centos.

did it worked. Centos. • • reply My apologizes Something On February 7th, 2008 drmessano (Contributor)

On February 7th, 2008 drmessano (Contributor) said:

My apologizes

Something got lost in translation when I posted this from the doc I keep.

I started off with the old 4.x install guide on another site, and painfully updated it as I went during the 5.1 install. The instructions are not far from the 4.x, but there are very obvious updated between the two, so it actually WORKS on 5.1.

Please let me know if you have any more problems.

problems. • • reply Error during installation process On February 12th, 2008 alberto (tadpole) said: Hello,

On February 12th, 2008 alberto (tadpole) said:

Hello, I'm trying to follow your installation procedure. Some info about my box:

MB: M2N-SLI Deluxe ASUS CPU: AMD64 4.8 GHz

Here's the output of "make config" when configuring zaptel:

Zaptel has been configured.

If you have any zaptel hardware it is now recommended to edit /etc/default/zaptel or /etc/sysconfig/zaptel and set there an optimal value for the variable MODULES .

I think that the zaptel hardware you have on your system is:

pci:0000:01:08.0 zaphfc- 1397:2bd0 HFC-S ISDN BRI card

The following step (/sbin/ztcfg) reports one error, which I don't know how to solve:

Notice: Configuration file is /etc/zaptel.conf line 0: Unable to open master device '/dev/zap/ctl'

1 error(s) detected

Thanks anticipately for your help.

Modprobe wasn't run On February 13th, 2008 wanman75 (tadpole) said: Try this at a terminal prompt:

On February 13th, 2008 wanman75 (tadpole) said:

Try this at a terminal prompt:

modprobe wctdm

That should create the /dev/zap/* stuff.

create the /dev/zap/* stuff. • • reply PHP Pear DB On February 14th, 2008 chris.mylonas (tadpole)

On February 14th, 2008 chris.mylonas (tadpole) said:

Hi,

What will happen with php-pear-DB? Will this be replaced soon?

Cheers

Chris

replaced soon? Cheers Chris • • reply CDRs and Reports On February 15th, 2008 Joaors01 (tadpole)

On February 15th, 2008 Joaors01 (tadpole) said:

Hi, I install everything but the Reports don't work. I install everything and then reinstall again just in case don't made something good and then

the systems don't give me reports, I don't have CDRs Do you Guys Know Why? Thank you Joao

you Joao • • reply can not access /admin from localhost On March 13th, 2008 dragondad

On March 13th, 2008 dragondad (tadpole) said:

Your instruction is really good, although it still can be better if more details can be presented. After follow your instruction, and spend couple of days, now I almost reach the end of the game. Now I face the permission problem, when I try to access the http://localhost, I can not access any one of the three choice. I try to change the .htaccess, it didn't work, I try to log in as root or asterisk user, no luck. Could you please give me some hint, thanks in advance.

• • reply Re : can not access /admin from localhost On April 9th, 2008 orangisengbanget

On April 9th, 2008 orangisengbanget (tadpole) said:

just change the permission inside "/var/www/html" with user "asterisk" by using "chown" command.

On April 11th, 2008 SgtJake (tadpole) said: Hi All, I've followed the install instructions for

On April 11th, 2008 SgtJake (tadpole) said:

Hi All,

I've followed the install instructions for CentOS 5.1 and get to the install_amp. I get the following.

[root@localhost freepbx-2.3.1]# ./install_amp --username=asteriskuser -- password=SOMEPASSWORD Checking for PEAR DB OK Checking for PEAR Console::Getopt OK Using username: asteriskuser Using password: ************ Checking user OK

Checking if Asterisk is running

FAILED [FATAL] ./install_amp Asterisk must be running. If this is a first time install, you should start Asterisk by typing './start_asterisk start' For upgrading, you should run 'amportal start'

sh:

pidof: command not found

If i run the start_asterisk start i get the following. STARTING ASTERISK ./start_asterisk: line 36: pidof: command not found ./start_asterisk: line 18: pidof: command not found ./start_asterisk: line 18: pidof: command not found Asterisk Started

[root@localhost freepbx-2.3.1]# /sbin/pidof asterisk

20560

Any assistance would be great

Thanks in advance

SGT.

On April 17th, 2008 orangisengbanget (tadpole) said: "pidof" command is located in "/sbin" and default

On April 17th, 2008 orangisengbanget (tadpole) said:

"pidof" command is located in "/sbin" and default PATH for centos 5.1 doesn't include "/sbin" as its path, so you have to add it manual by using "export PATH=(directory)".

PATH=(directory)". • • reply Reports is grayed out On May 3rd, 2008 falves2 (tadpole) said: I

On May 3rd, 2008 falves2 (tadpole) said:

I had it working fine, but since a few days ago, the reports section is grayed out. I tried to

reinstall everything, but it does not work. Th addons are installed, and mysql is working. I

have 15 virtual units , here is the strange part, all of them have the same issue. Please give me

a clue as how can this happen. My clients are fuming. I don't feel that I need to pay for support twice on the same issue.

twice on the same issue. • • reply packages missing On June 20th, 2008 koen (tadpole)

On June 20th, 2008 koen (tadpole) said:

during compilation asterisk i got the followoing error:

checking for usb_init in -lusb

checking for vorbis_info_init in -lvorbis

checking for vpb_open in -lvpb

checking for compress in -lz

no

no

no

no

checking for ZT_DIAL_OP_CANCEL in zaptel/zaptel.h

yes

checking for ZT_EVENT_REMOVED in zaptel/zaptel.h

yes

checking for ZT_TCOP_ALLOCATE in zaptel/zaptel.h configure: error: *** termcap support not found

yes

i found a solution on http://lists.digium.com/pipermail/asterisk-users/2003-May/003970.html, asterisk compiled just fien after installing the packages listed below ;)

maybe this tutorial should be updated with these packages

Quote:

I can sympathise with the new users who get these compile errors because the instructions for setting up Asterisk on the asterisk.org website says the following

--snip--

You must have readline and openssl and thier respective development packages. You must be running Linux 2.4.x You must have the Linux Kernel Sources package installed on your system.

--snip--

There is no mention of these packages that are also required

bison

libtermcap

libtermcap-devel

newt

newt-devel

ncurses

ncurses-devel

while it may seem logical to install these to a hardend coder it means nothing to a

newbie who is just getting started in the Open Source world and wanting to try the awesome Asterisk PBX

and

So maybe give the newbies a break one quite often)

Later

We were all a newbie at one stage

(I think I still am

at one stage (I think I still am • • reply When the instructions are On

On June 29th, 2008 drmessano (Contributor) said:

When the instructions are followed EXACTLY as spelled out here, you will have a working system. EVERY SINGLE PROBLEM I have seen with these instructions has to do with users not following them. Whether it's ignoring steps, misreading, or starting off in a different state of install, any deviation from this guide is leaving you open to making some sort of change later on.

I checked newt and ncurses just for giggles, on a freshly installed CentOS only system are there. If they are not, then the install instructions WERE NOT FOLLOWED.

They

I know everything thinks they are smarter than a step by step and tries to skip steps, take this or that for grantid, but if that were the case, why would one add all these "unneeded" or "incorrect" steps to something meant to simplify a proper install?

I have used

this guide, which I created for myself, for dozens of installs now. If you're so certain things are left out or not working, then butcher it as you please, but at that point, I cannot continue to be credited with this doc or ensure it's accuracy beyond the last edit that I personally made.

If someone wants to modify this guide from this point on, then feel free to do so

drmessano

Edit:: Just checked libtermcap and bison as well, same thing

as well, same thing • • reply zaptel compiling issue INSTALLED. On July 2nd, 2008 danwagoner

INSTALLED.

On July 2nd, 2008 danwagoner (tadpole) said:

I had a problem getting zaptel to configure properly (current is 1.4.11) so I simply used the

svn release and it compiled first try. Also noticed that these directions point you to freePBX

version 2.3.1 and 2.4 has been released. Not a big deal, but easier to install 2.4 without having to go through the upgrade process. Here are the updated commands that I used:

Other than that these instructions were great. Thank you for your contribution!

Using ATrpm's Asterisk On July 4th, 2008 mattkyn (tadpole) said: If you've used the RPMs from

On July 4th, 2008 mattkyn (tadpole) said:

If you've used the RPMs from http://atrpms.net/dist/el5/asterisk, the installer will create an asterisk user without shell access. Various FreePBX scripts need to run stuff as asterisk, so you'll need to give it a shell before installing:

$ usermod -s /bin/bash asterisk

Hope it helps

Hope it helps • • reply Error in named configuration On July 16th, 2008 mohammad_kord (tadpole)

On July 16th, 2008 mohammad_kord (tadpole) said:

hi all i install process for centos5.1 and in the second process (service named start) the service dosent start and give this error:

Error in named configuration : /etc/named.conf:7: 'options' redefined near 'options'

and my named service is stop in services help me

named service is stop in services help me • • reply Couple of problems On July

On July 21st, 2008 mmosier (Contributor) said:

1.

I installed CentOS 5.2 will these instructions still work?

2. when I try to get to the admin 192.168.1.66/admin I get "Failed to Connect"

Thanks for any help you can give.

Thanks for any help you can give. • • reply Install On July 30th, 2008 canus21

On July 30th, 2008 canus21 (tadpole) said:

Hi all;

I tried unsuccessfully installing FreePBX as per the tutorial above. And, I tried probably in the area of 10 times. So, I played and played, scoured the internet for some other tutorials/walkthru's on getting this up and running. And, finally I got it working. If anyone is interested, you can go to my site: http://canus21.net/linux/asterisk/ and check out my tutorial. It works perfectly. Except, one last thing you need to do, when it is finished, run this command:

amportal start_fop

Hope you enjoy! and, please, leave a comment, if you have any problems. Perhaps I can help, or at least, point you in the right direction, or someone else who has more experience with Asterisk/FreePBX could help also.

Chris

with Asterisk/FreePBX could help also. Chris • • reply install DNS On August 7th, 2008 randy.hou

On August 7th, 2008 randy.hou (tadpole) said:

echo "options {" >> /etc/named.conf echo " directory \"/var/named\";" >> /etc/named.conf echo " dump-file \"/var/named/data/cache_dump.db\";" >> /etc/named.conf echo " statistics-file \"/var/named/data/named_stats.txt\";" >> /etc/named.conf echo "};" >> /etc/named.conf echo "include \"/etc/rndc.key\";" >> /etc/named.conf

service named start

[root@Asterisk log]# service named start Locating /var/named/chroot//etc/named.conf failed:

[FAILED]

/usr/sbin/named -gc /etc/named.conf 07-Aug-2008 18:11:38.130 starting BIND 9.3.4-P1 -gc /etc/named.conf 07-Aug-2008 18:11:38.132 found 1 CPU, using 1 worker thread 07-Aug-2008 18:11:38.174 loading configuration from '/etc/named.conf' 07-Aug-2008 18:11:38.179 listening on IPv4 interface lo, 127.0.0.1#53 07-Aug-2008 18:11:38.184 listening on IPv4 interface eth0, 192.168.0.80#53 07-Aug-2008 18:11:38.203 command channel listening on 127.0.0.1#953 07-Aug-2008 18:11:38.206 command channel listening on ::1#953 07-Aug-2008 18:11:38.209 ignoring config file logging statement due to -g option 07-Aug-2008 18:11:38.216 couldn't open pid file '/var/run/named/named.pid': Permission denied 07-Aug-2008 18:11:38.217 exiting (due to early fatal error)

exiting (due to early fatal error) • • reply install DNS On August 10th, 2008 canus21

On August 10th, 2008 canus21 (tadpole) said:

sounds like either permission problems, or CHROOT (yuck)

On February 25th, 2011 vanhorn (tadpole) said: Well, that could be, but named normally does

On February 25th, 2011 vanhorn (tadpole) said:

Well, that could be, but named normally does run in a chroot jail, has for ages as far as I can remember. It's a pretty basic security element. Assuming that CentOS installed named to run in chroot, all you need to do is:

mv /etc/named.conf /var/named/chroot/etc/

Then it starts happily.

Van

starts happily. Van • • reply Problems In Admin module On September 2nd, 2008 HellDog (tadpole)

On September 2nd, 2008 HellDog (tadpole) said:

Hi. i'm following the instructions on installing freepbx, but i got a problem when a load the application; if i hit http://localhost/ i got the index with the cute frog and three links, the ARI,

the FOP and the FreePBX Admin module

well if a hit the last one i got this on my browser:

header("Location: config.php"); ?>

If i hit thee second one (FOP), after downloading and installing some adobe flash plugin, i

got a page with the extensions and stuff.

If i hit the first one (ARI), i got this on my browser:

/**

* @file

* main

*/

include_once("includes/bootstrap.php");

ariPageHeader();

include_once("includes/common.php");

handler();

ariPageFooter();

?>

I haven't continue 'cause i know there's something wrong. Can somebody help me ?

Note: I'm quite new in this asterisk stuff, and i'm not a php expert either

and i'm not a php expert either • • reply My bad On September 3rd, 2008

On September 3rd, 2008 HellDog (tadpole) said:

My bad

it was missing php.

i ran yum -y install php

restarted the httpd service and FreePBX ran up very well

ran up very well • • reply The powers that be need to On September 3rd,

On September 3rd, 2008 mmosier (Contributor) said:

The powers that be need to make this process easier. I would sell more straight asterisk systems if I could get this process to more of a science than it is today.

On September 9th, 2008 rzougabenoma (tadpole) said: is this installation work on centos 5.2 •

On September 9th, 2008 rzougabenoma (tadpole) said:

is this installation work on centos 5.2

5.2 • • reply This installation works fine on CentOS 5.2 On September 9th, 2008 SchlingBlade

On September 9th, 2008 SchlingBlade (tadpole) said:

There are a few things that can be done easier (yum install caching-nameserver instead of echoing data into /etc/named.conf), but I just finished installing FreePBX/Asterisk on a clean CentOS 5.2 installation with minimal fuss.

I even updated all the way to the 2.5RC of FreePBX once it was up and running.

So far, so good. Very slick stuff!

far, so good. Very slick stuff! • • reply login issues On October 11th, 2008 larromac

On October 11th, 2008 larromac (tadpole) said:

I cannot login to phpmyadmin or to a2billing admin. What passwords do I have to adjust to gain access. For phpmyadmin I am getting access denied for user root@localhost with password yes.

PLEASE, please do not hijack a thread On October 13th, 2008 fskrotzki (Contributor) said: PLEASE, please

On October 13th, 2008 fskrotzki (Contributor) said:

PLEASE, please do not hijack a thread about one thing for another. Nothing in this install covers a2billing, or phpmyadmin.

Please port a new topic in the forums and then you'll have a chance at getting the answers you need. Here you will not as that is not the topic at hand.

the topic at hand. • • reply installation on centos 5.2 On October 30th, 2008 hosdes

On October 30th, 2008 hosdes (tadpole) said:

I have read instructions above and got as far as install_amp. "./install_amp -- username=asteriskuser --password=SOMEPASSWORD".

our asterisk 1.4.22 is running. The error I am getting is "./install_amp: /usr/bin/php: bad interpreter: No such file or directory".

any advice?

No such file or directory". any advice? • • reply Is PHP installed? On October 30th,

On October 30th, 2008 rymes (tadpole) said:

Please don't take this the wrong way, because I don't want to discourage you from installing and learning to love FreePBx as I have. However, errors encountered with this how-to are due to not following the instructions precisely.

I would recommend that you verify that you have PHP installed. To do so, run the command

"rpm -q php" and verify that it outputs a package name and version. Alternatively, you could 'ls /usr/bin/php' to see if the php interpreter is installed. Of course, it could also be something else, but verifying PHP is installed seems like a good place to start.

To save yourself some time in the future, make sure that you do a web search before posting

a question. That way you can often find the answer to your problem immediately instead of

having to make a post and wait for an answer. If you paste "./install_amp: /usr/bin/php: bad interpreter: No such file or directory" into the search box at Google, the second result mentions the same advice I provided above.

into configure: error: C++ preprocessor "/lib/cpp" On November 2nd, 2008 get_the_fish (tadpole) said: Hello

On November 2nd, 2008 get_the_fish (tadpole) said:

Hello all,

I ran into the error message on Centos 5.2:

configure: error: C++ preprocessor "/lib/cpp" fails sanity check

after doing the ./configure for the Asterisk compilation. Not sure exactly why, and I am really still learning Linux here, but I dont see gcc-c++in the manual yum install, and I dont think that the "linux text" installs it with the development tools. But I didn't follow the instructions to the letter either (intentionally, I might add). Please correct me if I am off base so we don't spread mis-information.

All that I had to do was the following:

yum install gcc-c++

And once it completed everything was right with the world once more.

Thanks for the instructions, it's the FreePBX community that makes FreePBX such an outstanding project.

reply

• Development tools provides On November 3rd, 2008 fskrotzki (Contributor) said: Development tools provides the gcc-c++.

On November 3rd, 2008 fskrotzki (Contributor) said:

Development tools provides the gcc-c++.

provides the gcc-c++. • • reply named service want start On November 23rd, 2008 bstrick (tadpole)

On November 23rd, 2008 bstrick (tadpole) said:

After setting up the named service in /etc the service want start.

service named start gives service not recognized

Does this service need to be listed somplace else? Seems like a chmod 755 is needed also to get the file named.conf to be run as a script.

a script. • • reply When "service named start" On November 24th, 2008 fskrotzki (Contributor) said:

On November 24th, 2008 fskrotzki (Contributor) said:

When "service named start" gives the message "service not recognized: that means that you didn't install one of the requirements, the DNS service WAY up at the top, second line down. When it is installed it places the needed files in the correct location for that command to work.

• • reply Start installing freebpx On November 26th, 2008 pyrotec (tadpole) said: I've tried some

On November 26th, 2008 pyrotec (tadpole) said:

I've tried some Howto's to get freepbx running together with asterisk. I've followed this tutorial exactly step by step, but when I try to start the installation of freepbx with

"./install_amp --username=asteriskuser --password=SOMEPASSWORD"

I get in all installations the same error: "Checking if Asterisk is running file or directory" The result of "pidof asterisk" is normal >> asterisk is running !!

What`s wrong ?? Has anybody an idea ??

anybody an idea ?? • • reply substitute actual values On November 26th, 2008 rymes (tadpole)

On November 26th, 2008 rymes (tadpole) said:

sh: /pidof: No such

You have to substitute the actual values of "asteriskuser" and "SOMEPASSWORD" when you run the command. In the tutorial the username is "asterisk"

On November 26th, 2008 pyrotec (tadpole) said: Thanks for your answer, but that`s clear. The

On November 26th, 2008 pyrotec (tadpole) said:

Thanks for your answer, but that`s clear. The line before the errormassage is "Checking

user

OK"

:-(

is "Checking user OK" :-( • • reply Stupid noob On December 4th, 2008 Nimda_11 (tadpole)

On December 4th, 2008 Nimda_11 (tadpole) said:

Hello all I am trying to install on CentOS 5.2 and I am getting to;

echo "options {" >> /etc/named.conf echo " directory \"/var/named\";" >> /etc/named.conf echo " dump-file \"/var/named/data/cache_dump.db\";" >> /etc/named.conf

Can anyone tell me or give me a clue as to what these commands do? I am pretty new to Linux, and pretty new to FreePBX I am coming from dealing with ISO's from trixbox. I appreciate any tips/links/whatever you can give me.

Thanks!

- Sam

you can give me. Thanks! - Sam • • reply it is adding lines to the

On December 5th, 2008 fskrotzki (Contributor) said:

it is adding lines to the end of the named.conf file. The lines being added are to help setup the named service which is DNS.

service which is DNS. • • reply Thanks for the responce! On December 5th, 2008 Nimda_11

On December 5th, 2008 Nimda_11 (tadpole) said:

so named.conf is the config file for BIND (or something like it?). Is this step documented better (I don't just wanna be blindly throwing stuff into a config file)? Thank you again!

Thank you again! • • reply Without writing a book no. On December 5th, 2008 fskrotzki

On December 5th, 2008 fskrotzki (Contributor) said:

Without writing a book no.

You can find everything you'd ever want to know and more here https://www.isc.org/

What it is asking you to is needed and you should do it. It's like tightening the lug nuts to your tires. You know it needs to be done. Do you really need to read the all the studies to determine why your car needs 45 lb's of torque in a star pattern or just do what you are told because the experts said that is what you need to do.

On December 5th, 2008 Nimda_11 (tadpole) said: its better to understand what you are doing,

On December 5th, 2008 Nimda_11 (tadpole) said:

its better to understand what you are doing, and if that means I need to read a but so be it. I have a pretty clear understanding of most network protocols (DNS,DHCP,tFTP,TCP/IP etc.). I was really just asking if documentation was available explaining what the role of the Name Service was pertaining to the operation of FreePBX/Asterisk so in case something strange

happens I know what I am looking at. If its not available no biggie more slowly.

I'll just figure it out a bit

figure it out a bit • • reply Well that is different. On December 5th, 2008

On December 5th, 2008 fskrotzki (Contributor) said:

Well that is different.

SIP, IAX, and almost every other protocol can pass both IP and DNS references, so when it receives a DNS name it will need to look it up and translate it to a IP to send it back out (or even determine if it is a local or remote connection). Without DNS it would not be possible for FreePBX to locate the mirrors and download updates for example. Having a local copy of DNS running is always better then a remote DNS server, A caching name server is best for a underpowered box or on a connection where bandwidth is limited so that it is not using the internet pipe for many lookup requests.

requests. • • reply Oh ok, so this is just a best practices kinda thing On

On December 5th, 2008 Nimda_11 (tadpole) said:

Worst thing that'll happen if I screw it up is no updates, and if is have a VoIP Trunk or something it wont work? Very familiar with DNS, just with Windows :). OpenDNS FTW!

Thanks again!

- Sam

Sip problem No such command 'sip show registry' On December 9th, 2008 fargo87 (tadpole) said: Hallo,

On December 9th, 2008 fargo87 (tadpole) said:

Hallo, can somebody help me please???

I have installed asterisk on my server CentOs 5.2

Et first am installed a Dahdi linux 2.0, Dahdi tools 2.0, Libri 1.4.7, Asterisk 1.6 et Asterisk addons 1.6 and than FreePBX 2.5.1

Installation whose ok! Its work but I have problem wits sip options. No sip commands work.

I get this for example:

No such command 'sip show registry' (type 'help sip show' for other possible commands)

or

No such command 'sip show channels' (type 'help sip show' for other possible commands)

I have tried with FreePBX 2.4.0, it is the same problem. But without FreePBX it works.

I have it. It is ok.

asterisk -r

reload now

:-)

reply

• What I had to change to make this work on CentOS 5.2 On January 14th,

On January 14th, 2009 autefrum (tadpole) said:

I thought other newbies might benefit from these tips:

I used "mindterm" ssh software to connect using ssh to my CentOS 5.2 server running on a HP ML370 hardware.

1) named service does not start

To get the "service named start" command to start the named service, I had to edit the "/etc/sysconfig/named" file and place a # sign (ie. comment out) the line starting with "ROOTDIR=". Otherwise it is looking elsewhere for the home directory.

2) "tar

"

problem

The line

wget http://downloads.digium.com/pub/asterisk/asterisk-addons-1.4-current.tar is truncated above because it is a URL (at least in Firefox it is). The last part need to be:

/asterisk-addons-1.4-current.tar.gz

not ending with window.

as it looks in my browser, and when I copy and paste it into my ssh

3) Replace 'Current' with actual version numbers:

Note that as new versions are release, the 'current' version changes:

Line "cd /usr/src/zaptel-1.4-current" should be

"cd /usr/src/zaptel-1.4.12.1" when I ran this is Dec 08.

Similarly

"cd /usr/src/libpri-1.4-current" needed to be "cd /usr/src/libpri-1.4.8" in Dec 08, and "cd

/usr/src/libpri-1.4.9" in Jan 09.

So if these cd commands don't work, do an ls command and find out what the correct dir is.

I did not end up getting this to work - I fell at the MySql hurdle. I replaced

'SOMEPASSWORD' with my real password, but there is something else missing here.

I'll put the error message I'm getting in again when I encounter it in a few hours. I'm off to do something else right now.

right now. • • reply How many cd isos do I download? On January 27th, 2009

On January 27th, 2009 voipmart (tadpole) said:

Thanks for the guide. I am looking forward to use it. Can someone tell me how many CentOS CD isos I need to download for the the basic system and packages needed for this install? I started with A@H, then moved to EasyVoxBox when A@H turned into what it's now. Now I want to try a manual install following this guide. Keep up the with great product, FreePBX.

Voipmart

product, FreePBX. Voipmart • • reply FreePBX ISO image On January 27th, 2009 Gohar (tadpole) said:

On January 27th, 2009 Gohar (tadpole) said:

Hey can anyone tell where can I find this FreePBX ISO image?

Post new comment

Your name: gerardinho

Subject: Comment: * Input format
Subject:
Comment: *
Input format

Filtered HTMLSubject: Comment: * Input format • Web page addresses and e-mail addresses turn into links automatically.

Web page addresses and e-mail addresses turn into links automatically.

Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>

You can use BBCode tags in the text, URLs will automatically be converted to links.

You may post code using <code> PHP) tags.

</code> (generic) or <?php

?> (highlighted

BBCode</code> (generic) or <?php ?> (highlighted • You can use BBCode tags in the text, URLs

You can use BBCode tags in the text, URLs will automatically be converted to links.

Lines and paragraphs break automatically.

Images can be added to this post.

Web page addresses and e-mail addresses turn into links automatically.

automatically. More information about formatting options Answer: * To combat spam, please enter the code in

Answer: *

To combat spam, please enter the code in the image.

Preview comment Po s t comment
Preview comment
Po s t comment

gerardinho

My files

My inbox

My subscriptions • My account • My files • My inbox Copyright © 2011 Bandwidth.com FreePBX

Copyright © 2011 Bandwidth.com FreePBX is a Registered Trademark of Bandwidth.com All Rights Reserved