FreePBX Production Install Guide (RHEL v6, Asterisk v1.8+, FreePBX v2.9+)
Primary tabs
This install procedure was tested using the Redhat Enterprise Linux distributions known as CentOS and Scientific Linux.
Software used:
CentOS v5 or CentOS v6 or Scientific Linux v6
Asterisk 1.8
FreePBX 2.9
Linux commands executed at a command prompt are in courier font.
Let's get started
If you are installing Linux from scratch using Anaconda via install CD select "minimal" and proceed with the install which will install with no groups. Skip down to the yum -y update part.
Otherwise, it is assumed you already have a server with a base CentOS installation before you begin. Do NOT install a GUI such as Gnome or KDE. We only want to be running in console text mode not GUI graphics mode. If you already have a desktop or server GUI installed you will want to exit to console mode. You do that by typing init 3 from a terminal or console window. You will need to be logged in as root in order to do this so if not you can su root. All instructions in this guide are assuming you are always logged in as root.
Get rid of all installed groups except 'Yum Utilities' so we are starting with a clean slate. Check the delete list before entering 'y' to make sure none of these remove 'sshd' or 'yum' (they don't but check just in case things change with newer revisions).
yum grouplist installed
Installed Groups:
DNS Name Server
Editors
Legacy Network Server
Mail Server
Network Servers
System Tools
Text-based Internet
Web Server
Windows File Server
Yum Utilities
yum groupremove 'DNS Name Server'
yum groupremove 'Editors'
yum groupremove 'Legacy Network Server'
yum groupremove 'Mail Server'
yum groupremove 'Network Servers'
yum groupremove 'System Tools'
yum groupremove 'Text-based Internet'
yum groupremove 'Web Server'
yum groupremove 'Windows File Server'
Now update the base install
yum -y update
Install Asterisk/FreePBX required packages, other useful packages, and their dependencies
yum groupinstall core
yum groupinstall base
yum install gcc gcc-c++ wget bison mysql-devel mysql-server php php-mysql php-pear php-pear-DB php-mbstring nano tftp-server httpd make ncurses-devel libtermcap-devel sendmail sendmail-cf caching-nameserver sox newt-devel libxml2-devel libtiff-devel php-gd audiofile-devel gtk2-devel subversion nano kernel-devel
On RHEL 5 shutdown unnecessary daemon brcm-iscsi which is enabled by default and tends to do a lot of logging even when not used. This creates unnecessary I/O load.
chkconfig iscsi off
chkconfig iscsid off
service iscsi stop
service iscsid stop
Replace syslog with the improved and backwards compatible rsyslog (standard in RHEL6 but not RHEL5). This also prevents a problem that comes up with improper timestamps in /var/log/secure when you get disconnects.
NOTE:This is only for RHEL5 based systems. You do not need to do this for RHEL6.
yum -y install rsyslog
chkconfig syslog off
chkconfig rsyslog on
service syslog stop
service rsyslog start
RHEL v6 NOTES:
On RHEL v6 and it's clone distributions the php-pear-DB package is not included. You need to download it from an official mirror and install otherwise the FreePBX install will fail. Click the link to check for the latest version.
cd /usr/src
wget http://download.fedora.redhat.com/pub/epel/6/i386/php-pear-DB-1.7.13-3.el6.noarch.rpm
rpm -ivh php-pear-DB*
RHEL v6 uses a newer version of php. In this version php-posix is no longer in php-common, it is in php-process. So you need to install php-process if using RHEL v6 or it's clones otherwise the FreePBX install will fail.
yum -y install php-process
Check if the firewall (iptables) is enabled by default and if the RHEL v6 default configuration blocks the FreePBX web GUI. If you know what services/ports are required you can run "system-config-firewall-tui" and configure the firewall as required.
At a minimum, the following ports need to be opened:
TCP 80 (www)
TCP 4445 (Flash Operator Panel)
UDP 5060-5061 (SIP)
UDP 10,000 - 20,000 (RTP)
UDP 4569 (IAX)
Another option is to remove existing settings from the firewall and save.
iptables -F
service iptables save
Alternatively, you can disable the firewall for now and prevent it from starting on reboot.
service iptables stop
chkconfig iptables off
--END of RHEL v6 NOTES--
Selinux is not required or recommended. This will create the required file if it does not already exist. If it already exists copy paste or edit the contents indicated here to be sure selinux never runs.
nano /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
# SETLOCALDEFS= Check local definition changes
SETLOCALDEFS=0
(Ctrl-x> y >Enter)
Make sure selinux is turned off for this session
setenforce 0
Enable the tftp server on startup if required (for configuring phones)
nano /etc/xinetd.d/tftp
change “disable=yes” to “disable=no”
(Ctrl-X>y>ENTER)
Set Timezone
Copy your timezone from this link
System timezone
Create a symbolic link to the appropriate timezone from /etc/localtime.
Example:
ln -sf /usr/share/zoneinfo/America/Vancouver /etc/localtime
if not set and using php v5.3+ (the version included with RHEL6) it will revert to the default timezone which may not be the correct one depending on your location. The FreePBX install will throw out a bunch of warnings if you are using RHEL 6 and don't set this.
for RHEL5:
nano +633 /etc/php.ini
for RHEL6
nano +946 /etc/php.ini
Uncomment (;) date.timezone = and add your timezone
Memory Limit
The recommended setting is 128M otherwise you may get warnings in FreePBX. RHEL 5 installs will probably already have this set correctly. RHEL 6 may need to have this changed.
For RHEL 5
nano +302 /etc/php.ini
memory_limit = 128M
For RHEL 6
nano +457 /etc/php.ini
memory_limit = 128M
As always after php.ini changes, apache needs to be restarted for the changes to take effect.
service httpd restart
Download and untar source files. Zaptel/Dahdi is not included in this install procedure. Starting with Asterisk 1.6.2/FreePBX2.9, it is possible to use ConfBridge in place of MeetMe conferencing. Meetme conferencing was the last Asterisk application that required a timing source. The only reason to install zaptel/dahdi now is if you are installing telephony hardware. Meetme still has some features that confbridge does not and is still required if you also require paging. To install meetme conferencing you must install dahdi and ensure meetme is selected during the asterisk menuselect installation part of the procedure. You can also install confbridge but FreePBX will default to use MeetMe if it detects it.
Get FreePBX. Check if this is the latest released version.
cd /usr/src
wget http://mirror.freepbx.org/freepbx-2.9.0.tar.gz
tar zxvf freepbx-2.9.0.tar.gz
Get Asterisk v1.8.
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.8-current.tar.gz
tar zxvf asterisk-1.8-current.tar.gz
NOTE: There is no separate asterisk addons package to download starting with Asterisk v1.8
cd /usr/src/asterisk-1.8*
make clean
./configure && make menuselect
Select all addons. I believe these are all needed or recommended for FreePBX. Select base and addon sounds. I suggest ulaw as they sound better than gsm especially if you are using ulaw as your default codec. I usually just check both. Then make sure to press the "save" button afterwards.
When you select 'format_mp3' above as an addon you must run a script before going any further otherwise the install will fail.
./contrib/scripts/get_mp3_source.sh
You must also have subversion installed to run the above script and be in the root directory of the Asterisk source code.
Now install Asterisk. NOTE: If upgrading Asterisk on an already running FreePBX system do NOT run make samples.
make && make install && make samples
Create user. May already exist but just to make sure
useradd -c "Asterisk PBX" -d /var/lib/asterisk asterisk
The following directory may already exist but just to make sure
mkdir /var/run/asterisk
Set ownership
chown -R asterisk /var/run/asterisk
chown -R asterisk /var/log/asterisk
chown -R asterisk /var/lib/asterisk/moh
chown -R asterisk /var/lib/php/session
Music on Hold
The Asterisk default moh directory is "/moh" and the Freepbx default moh directory is "/mohmp3". If we create a symbolic link instead everything is in one place and can still be found by both FreePBX and Asterisk. FreePBX uses mohmp3 by default so moh just sits there unused if we do not create a symbolic link. You can switch between these two moh directories in the new Advanced Settings GUI. I still include this symbolic link procedure for legacy reasons. If you do it everything is in one directory always no matter what. That simplifies things and simpler is often better.
ln -s /var/lib/asterisk/moh /var/lib/asterisk/mohmp3
The new default behaviour for Asterisk and Freepbx is to only use wav files for moh due to transcoding overhead and Asterisk stability issues with mp3's. So we want to install mpg123 for converting uploaded mp3's to wav automagically. If you won't be uploading or streaming mp3's or won't be using FreePBX (new) default behaviour then you probably don't need to install mpg123.
cd /usr/src
wget http://sourceforge.net/projects/mpg123/files/mpg123/1.13.4/mpg123-1.13.4.tar.bz2/download
tar -xjvf mpg123-1.13.4.tar.bz2
cd mpg123-1.13.4
./configure && make && make install
Freepbx php script cannot find mpg123 by default so we need to create a symbolic link.
ln -s /usr/local/bin/mpg123 /usr/bin/mpg123
CHANGE APACHE USER
Change User apache and Group apache to User asterisk and Group asterisk.
sed -i "s/User apache/User asterisk/" /etc/httpd/conf/httpd.conf
sed -i "s/Group apache/Group asterisk/" /etc/httpd/conf/httpd.conf
MYSQL SETUP
Before you can do anything to MySQL, you need to make sure it's running:
service mysqld start
Initializing MySQL database: [ OK ]
Starting MySQL: [ OK ]
Now, to configure the databases for freePBX:
Note: If mysql admin password is already configured, add "-p" after the command and enter password when asked. For example, "mysqladmin -p create asterisk"
cd /usr/src/freepbx-2.9.0
mysqladmin create asterisk
mysqladmin create asteriskcdrdb
mysql asterisk < SQL/newinstall.sql
mysql asteriskcdrdb < SQL/cdr_mysql_table.sql
They also need to be secured. FreePBX will prompt you for a database username/password when you do the install. You need to pick that now. We'll assume that you've picked 'asteriskuser' and 'amp109' - you probably shouldn't use these, as they are well known passwords for Freepbx. If you use these well know defaults and your server is not firewalled make sure to set bind-address = 127.0.0.1 further down in this procedure so that MySQL only listens to localhost. Or better yet do both.
mysql
mysql> GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY 'amp109';
Query OK, 0 rows affected (0.00 sec)
mysql> GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY 'amp109';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> \q
Bye
Now, after all of this, you need to pick a root 'mysql' password. We'll make it 'abcdef' just for this example. You should use a reasonably strong password. If you need to do anything else with mysql, you'll need to provide this password.
mysqladmin -u root password 'abcdef'
Install FreePBX
/usr/sbin/safe_asterisk
You will get a bunch of warnings, errors, and notices at this point. Don't worry about them. Hit ENTER to get a command prompt.
cd /usr/src/freepbx-2.9.0
./install_amp
If you get any warnings or errors in the last part of the output, they're usually not traumatic.
Default username is: admin
Default pw is: admin
Freepbx 2.10 now wants to create symlinks to some .conf files and complains if actual files already exist as is the case when Asterisk make samples is run. So we need to delete these files. In FreePBX 2.9 you should only have to delete sip_notify.conf and ccss.conf. Not sure what would happen if you try delete the rest. After deleting the following files, the next time we make a change in FreePBX and apply settings these symlinks will be created.
rm -f /etc/asterisk/sip_notify.conf
rm -f /etc/asterisk/iax.conf
rm -f /etc/asterisk/logger.conf
rm -f /etc/asterisk/features.conf
rm -f /etc/asterisk/sip.conf
rm -f /etc/asterisk/extensions.conf
rm -f /etc/asterisk/ccss.conf
rm -f /etc/asterisk/chan_dahdi.conf
Edit /etc/asterisk/cdr_mysql.conf and add 'loguniqueid=yes' to the global section which will give each call record a unique identifier number.
nano /etc/asterisk/cdr_mysql.conf
loguniqueid=yes
set FreePBX to start on boot
echo /usr/local/sbin/amportal start >> /etc/rc.local
Enable Apache and MySQL to start on boot
chkconfig httpd on
chkconfig mysqld on
Now reboot at which point you should be able to access FreePBX with your web browser. The very first thing you need to do when you enter the FreePBX Admin GUI for the first time is "Apply Configuration Changes" so all the *.conf files are created then reboot again or 'amportal restart' from command prompt.
You may get an error in the FreePBX GUI saying "symlink failed for /etc/asterisk/sip_notify.conf" or something along those lines. If that is the case just delete or rename /etc/asterisk/sip_notify.conf. The next time you "Apply Configuration Changes" in the FreePBX GUI after some change this file will be recreated and the error should be gone.
AMPORTAL.conf changes
FreePBX v2.9+ now includes an "advanced settings" gui that is designed to replace amportal.conf and the requirements to edit it directly. There are also some settings in a new file /etc/freepbx.conf
At this point you should go into this new advanced settings GUI on the FreePBX webpage and edit the following settings:
http://IPaddressOFyourFreePBXserver/
In the GUI Go to: Tools>Advanced Administration>Advanced Settings>System Setup>User Portal Admin Password
Choose your admin password for accessing the Voicemail & Recordings (ARI) section of the front webpage.
In the same GUI go to: System Setup>FreePBX Web Address
Remove the "xx.xx.xx.xx" and leave blank. If that does not work use your public (ie. web facing) IP address for this server.
After saving these changes by pressing the green arrow on the right hand side of each box make sure to "Apply Configuration Changes" at the top of the GUI.
Misc. optional settings
Change the “upload_max_filesize” from 2M to 20M to allow larger music on hold files
RHEL 5
nano +582 /etc/php.ini
RHEL 6
nano +878 /etc/php.ini
Edit Apache web server for GUI access using a port other than 80:
nano +134 /etc/httpd/conf/httpd.conf
change "Listen 80" to "Listen 8888" or whatever port you want
Change default Apache setting of AllowOverride None to All so that Apache obeys directives in .htaccess files which by default prevents viewing sensitive directories on Freepbx.
nano +338 /etc/httpd/conf/httpd.conf
AllowOverride All
service httpd restart
Instead of accessing FreePBX by http://xxx.xxx.xxx.xxx
You now access it by http://xxx.xxx.xxx.xxx:8888
nano /etc/asterisk/sip_nat.conf
nat=yes
externip=<your fixed external IP> or
;externhost=yourdns.com
localnet=192.168.1.0/255.255.255.0
;change the above to whatever your local subnet is
externrefresh=10
(Ctrl-X>y>ENTER)
Also, when adding the external SIP extension in FreePBX, make sure to change the nat=never default in the configuration to nat=yes for the extension that will be external.
Set up configuration to rotate log files otherwise they get too big after a short while. Create the following file.
nano /etc/logrotate.d/asterisk
Now add the following to make sure the asterisk log files are rotated weekly along with all the other log files.
/var/log/asterisk/messages /var/log/asterisk/*log /var/log/asterisk/full {
missingok
notifempty
sharedscripts
create 0640 asterisk asterisk
postrotate
/usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
endscript
}
Edit /etc/aliases file and add a “root: username_to_forward_to” to forward all ‘root’ messages to your personal email address. Put in the full email address if it is not on the asterisk system itself.
Then run
/usr/bin/newaliases
to restart the service.
Put a “dnl” in front of the line ”EXPOSED_USER (`root’) dnl”. This enables host masquerading for root as well which is disabled by default.
NOTE: If you are installing on a LAN or do not have a domain resolving to the IP of the VPS, Sendmail will hang for a couple minutes everytime you reboot. To prevent this your VPS hostname should end with .local or .localhost. So, for example, instead of naming the VPS hostname 'powerpbx' it should be named 'powerpbx.local'. The manual method is to edit your /etc/hosts file. There should be 2 lines.
127.0.0.1 localhost.localdomain localhost
yourIPaddress yourhostname.local yourhostname yourhostname
MySQL performance tuning for low memory
This will reduce memory usage significantly without affecting performance.
nano /etc/my.cnf
[mysqld]
.
.
.
skip-innodb
skip-bdb
(Ctl-x > y > ENTER)
From command prompt:
service mysqld restart
RHEL v6 NOTE: Berkley DB support has been removed from the version of MYSQL included with RHEL v6 and the other v6 distributions. Therefore you must NOT use the "skip-bdb" line with RHEL v6 otherwise Mysql will fail to start.
MySQL security enhancement
This will prevent outside IP's from connecting to the MySQL port
nano /etc/my.cnf
[mysqld]
.
.
.
bind-address = 127.0.0.1
(Ctl-x > y > ENTER)
Add Password Protection to Flash Operator Panel GUI
By default, flash operator panel GUI (/var/www/html/panel) is visible to anyone who points a browser at your server unless port 4445 is blocked by a firewall. Here is one way to protect it.
mkdir -p /usr/local/apache/passwd
htpasswd -c /usr/local/apache/passwd/wwwpasswd NewUserName
Apache will prompt you for a new password for the user name you've just indicated
New password:
Apache will prompt you to retype your new password
Re-type new password:
Apache will then confirm the new user
Adding password for user NewUserName
Now you have to add the user name you've just created to the "httpd.conf" file. To edit that file in "nano" type:
nano +587 /etc/httpd/conf/httpd.conf
Now do a CTRL-W to search for "AuthUser" and you'll find the area where all the users are listed (for example: "maint", your AMP user). If you don't find any try around line 587 right after the cgi-bin "<Directory....." entry.
Now add the following lines:
#Password protect the Flash Operator Panel Page /var/www/html/panel
<Directory /var/www/html/panel>
AuthType Basic
AuthName "Restricted Area"
AuthUserFile /usr/local/apache/passwd/wwwpasswd
Require user NewUserName NewUserName1 NewUserName2 yaddayaddayadda
</Directory>
To delete an Apache user, type in the following and then remove the user from the "httpd.conf" file.
htpasswd -D /usr/local/apache/passwd/wwwpasswd NewUserName
To change the password:
htpasswd /usr/local/apache/passwd/wwwpasswd NewUserName
Then restart apache.
service httpd restart
- Add new comment
- 43289 reads

Comments
Great instructions even for the novice
I am not an expert in the field but I finally successfully installed it and got as far as the FreePBX gui!
1) Installation was based on new latest Centos 5.6 (64 bit). I performed a new installation but experienced problems during the "yum groupremove " modules. The machine would go into sleep and would not wake up, shuting it down caused problems that I had to start all over again. I disabled the machine from going to sleep but at another attempt when the modules were removed I lost command control and could not continue with the installation. Finnaly I gave up trying to "yum groupremove" and continued installation per remaining instructions. Also the machine's pop-up update recommendations disappeared as expected when updates were made during the installation process.
2) I did not apply the step in which SELINUX=disabled, I did this during the o.s. installation but verified the file was as shown in the instructions.
3) I am not sure if these instructions or starting asterisk in the background (asterisk & ?) worked for me but had some issue as asterisk needed to be running at some point.
4) The ./configure && make menuselect addons need some refinement. I tried to undesrastand and hopefully I installed what I thought were what you recommended.
5) I used Acronis to back up the installation at important milestones but when something went wrong and had to go back and restore was very time consuming. I installed in on a 2tb drive so everytime I backed up or restored it took 6 hours!
I have been thrilled to get this far! Thank you again for your efforts and great instrcutions.
Elias
Your machine
If your machine was going to 'sleep' that sounds to me like a hardware problem. Popup updates sounds to me like you are running a GUI like KDE or Gnome. These instructions were written assuming you are NOT running a GUI. That is probably your problem. I have now added a mention near the beginning of this guide that you should not be running a GUI. Command line text window only. The yum groupremove should take care of that if you have accidentally installed a Desktop GUI such as Gnome. You need to be in command line text mode not GUI mode when you do it.
You can certainly skip the yum groupremove step without any consequences as long as you are not running a GUI. I have never tried nor do I recommend installing a Desktop GUI as your base install prior to switching to command line text mode and starting on these instructions.
I definitely recommend you disable SELinux. There is little or no benefit and it can only cause problems IMHO.
I went through these instructions with CentOS 5.6 and I did not have any problems. So I would suggestion you make sure you start with a proper base Linux install that does not include Gnome or KDE or xWindows.
retrieve_conf issue
I have followed this guide to the letter and i'm getting the error "exit: 126sh: /var/lib/asterisk/bin/retrieve_conf: Permission denied" what can i do to resolve this?
Server is running on Centos 5.6, its also telling me in the status page that asterisk is not running (it is i can get into the cli)
Any ideas i need this going asap
Try issuing the command
Try issuing the command "chown -R asterisk /var/lib/asterisk"
Then "amportal restart"
If that doesn't work try "chmod -R 0775 /var/lib/asterisk"
Then "amportal restart"
I've never seen that problem before. It leads me to believe something went wrong during the Asterisk install which means you could have bigger problems. I believe the "make install" part is where those permissions are set. I would redo the Asterisk download/compile/install part. You don't have to redo the whole procedure. This would be what you would normally do to upgrade Asterisk to a newer version.
I would issue the make, make install etc. part individually instead of all on one line with the "&" and watch for errors.
I get the same issue as Alex
I get the same issue as Alex above.
No amount of playing has made it work.
A quick google search tells me its not fixable.
When I googled I get some
When I googled I get some indication it is because selinux is not disabled. Disabling selinux is included in these instructions. I have used this procedure many times and I can assure it does work.
Q
This error happened to me when using Centos 6.0
My advise is to stick to Centos 5.6, Asterisk 1.8.x FreePBX 2.9 (2.10 broke when upgrading...)
VERY IMPORTANT - Don't forget to lock your machine down or you will be regretting it when you get the phone bill. Change all default password and do not use ANY weak password for extensions at least!
I am currently using this
I am currently using this guide on CentOS 6.2 with no problems. When I looked around it seems that error is often related to a permissions problem or selinux. Another person said they fixed it by making sure localhost is in their /etc/hosts file. I personally have never seen that error. If you have more details let me know and I will upgrade the guide.
I got the error recently with
I got the error recently with FreePBX 2.10. I don't think it is related to 2.10 though.
chown -R asterisk /var/lib/php/session fixed it for me. It's related to recent php updates which change permissions.
Success!
Fantastic - it works! Thank you so very much.
I've tried just about all of the install scripts out there as well as the install guides provided by the big names and had varying outcomes from complete failure to incomplete and unusable installs.
There are far more plugs for paid support than there are complete and coherent guides out there so when I saw this one I thought "What the Hell" all I can loose is yet more time. As it turns out, the time was well invested.
Thanks once more and all the best for the future.
Andy Graham
Great instructions - BUT
A Great walk through, however there is a slight problem which has been overlooked...
A number of Freepb
x 2.9 modules requires Zend Optimiser, which isn't available for PHP5.3 and above, CentOS 6 standard install is with PHP 5.3, therefore to install all the FreePBX modules a downgrade to PHP 5.2 is required
Maybe you could expand this walk trought to include a section for downgrade to PHP 5.2 and Zend Optimiser install
Stephen
logon
ok i've done all of the steps. after i rebooted i tried to log onto the Asterisk PBX user we created but i never set a password for it and everything i've looked up and tried doesn't work. can anyone help me?
default username/password is
default username/password is "admin"
Cant hear the remote caller.
I have setup this script on a few VPS'. Everything works great with some IPTABLES Smoothing. The only issue I have is on each and every install I am not able to hear the remote caller. They can hear me just fine but I cant hear them.
I am using the same phone with perfectly working alternate pbx but of course when using my setup server I cant hear the other caller.
Any ideas?
Thank you!
That is almost always a
That is almost always a NAT or firewall issue. First thing to try is change the setting on the extension to nat=yes if you have not already done so. FreePBX now sets the default to nat=no which I disagree with and have filed bug reports to no avail.
If you want to change that default you can do it in Advanced settings or you can continue to set it for each new extension.
If that does not fix your problem then you probably have a firewall issue. Make sure you open the RTP ports. UDP port 10000-20000
Thank you for ending my MISERY
I had installed a version of Trixbox with the ISO.
I had endless problems with "All Circuits Are Busy Message".
I reinstalled many times using yum with multiple versions of Asterisk and Freepbx.
I was ready to pay for another sip provider account thinking they were the problem. ( I am using voipvoip.com which works well )
I like to run only one server for energy conservation and I have many development projects installed.
I dreaded reinstalling Asterisk from the ISO.
I came across you installation guide just before I was ready to give up.
It worked like a charm.
Thank you very much for the help.
Peter
It was almost working
During the make install of Asterisk I run into error messages related to mp3 and the build was not successful. I cought the warning message which said execute "$ contrib/scripts/get_mp3_source.sh". After that the execution worked out almost perfect.
I agree to the point, that the menue selection should be explained in more details and a default set-up would be very helpful. Many thanks to the author ... best regards Udo
Hi, Thanks for a great
Hi, Thanks for a great tutorial, I followed it to the letter and it worked great, accept...
amportal start doesn't work. I can run asterisk with 'asterisk start' as rotail /var/log/asterisk/fullot, after which amportal start also work. Amportal restart will then again fail. tail /var/log/asterisk/full will tell me there is no file or directory, so I have no idea how to fix this. Any help is welcome!
This is the key line. I
This is the key line. I would look more closely at those 2 files and see what is going on there.
set FreePBX to start on boot
echo /usr/local/sbin/amportal start >> /etc/rc.local
Thank you for a great step-by-step guide
Thanks for your time and effort in producing this great step-by-step guide. This really should be part of the "official" asterisk/freepbx documentation as both of their sites have really poor docs. I followed this guide through with a clean Centos5.7 install on a Xen VPS and it worked first time.
Best wishes
Mark
If asterisk 1.8 CDR is not logging calls into mysql
If asterisk 1.8 CDR is not logging calls into mysql
$ yum install mysql mysql-server mysql-devel
$ yum install unixODBC unixODBC-devel mysql-connector-odbc libtool-ltdl-devel
$cd /usr/src/asterisk-1.8*
$./configure && make menuselect
select add-ons > cdr_mysql
$make && make install
$amportal restart
$asterisk -r
CLI> cdr mysql status
It must show something like this...
Connected to asteriskcdr@localhost, port 3306 using table cdr for 11 seconds.
Wrote 0 records since last restart.
Excellent
This is one of the best guide ever. Period. No other words to describe. Very detailed. Nicely explained.
Thank You Very Much
Nemo.
DAHDI & Paging
So I've been successful a couple of times in loading the server and it working. Problem is, I REALLY need Paging for my situation. I am back at the menu select but I can never select DAHDI. How can I load this system up and be able to do paging?
Yes, you can definitely do
Yes, you can definitely do paging. However, paging is part of Meetme conference calling and Meetme requires Dahdi. So just make sure Dahdi is installed before you install Asterisk. If you already have Asterisk installed you have to re-install after you install Dahdi. That is because Meetme module is not compiled unless Asterisk detects that Dahdi is installed.
Download the Dahdi Complete tarball from the Asterisk.org website. The install instructions are very simple and explained in the readme file.
Many thanks
I would like to say many thanks for this guide, perfect perfect perfect…..
amportal restart
Hi everybody!
I followed this guide and seams to be all right also for me. I've only one big problem: the command "amportal restart" give me amportal: command not found. I can loging correctly to Freepbx admin panel, fop, voicemail, ecc... it's all ok. But this command doesn't want to work. Could somebody help me to solve? Thank you very much!
Guido
It's /usr/sbin/amportal on my
It's /usr/sbin/amportal on my system. Perhaps you're not logged in as "root" when you're trying the command, or perhaps /usr/sbin isn't in root's path.
FYI: With slight tweaks it works on OpenSuSE-12.1 64-bit too!
I mostly used your instructions above, tweaking them slightly for OpenSuSE-12.1. SuSE's document root is "/srv/www/htdocs" and the cgi-bin directory is "/srv/www/cgi-bin". What a pain! I wish they wouldn't have changed it from what everyone else in the world uses...
I also had to edit "/etc/apache2/default-server.conf" "Options" section to add "AllowOverride All" and "FollowSymlinks" and of course restart Apache2. Without that "FollowSymlinks" bit the "IVR" and "Advanced Settings" pages wouldn't work correctly (the green '+' symbol on IVR and the green checkmarks on Advanced Settings pages did nothing prior to that change).
Here are the things I have installed and running:
I'm using this dual-Atom + Nvidia motherboard as my FreePBX system and as my MythTV front-end, so didn't want to do the bare-metal install of FreePBX+CentOS and wipe out my entertainment center.
Thanks for the detailed instructions! It seems most of the other guides out there assume you're willing to install and ISO, so they don't go into details on the install. That doesn't help people like me that are motivated to install in other ways (and have the Linux know-how but perhaps not the time to invest figuring out a from-scratch install).
asterisk: unrecognized service
Followed this exactly using CentOS 6.2 and the Asterisk service is not recognized.
[root@pbx ~]# service asterisk start
asterisk: unrecognized service
[root@pbx ~]# asterisk -r
Asterisk 1.8.11.0, Copyright (C) 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
I have gone over the installation process 3 times with the same results on 2 different servers with the same results.
Did something in the yum updates break this? Anyone have any ideas?
I have verified permissions, user exists ...
[root@pbx ~]# useradd -c "Asterisk PBX" -d /var/lib/asterisk asterisk
useradd: user 'asterisk' already exists
No asterisk log and nothing in messages that would indicate a reason. I am clueless. (but I can duplicate the failure no problem)
You start asterisk using
You start asterisk using "amportal start". Not with asterisk service.
You should never need to start asterisk on its own independent of Freepbx but the command to do that is "/usr/sbin/safe_asterisk"
FreePBX and asterisk not starting @ Reboot
Hi Great Tutorial works for me except when i just reboot the system seems the echo /usr/local/sbin/amportal start >> /etc/rc.local are not staring i need to start the FreePBX manualy to make it work any idea..? can i use chkconfig functions also for FreePBX startup. Thanks again
nano /etc/rc.local/usr/local
nano /etc/rc.local
/usr/local/sbin/amportal start probably got added to the end of the last line instead of put on a new line.
HI , thanks it work i added
HI , thanks it work i added it on the first line..million thanks
asterisk freepbx
Hi everyone,
I have installed asterisknow1.7 and everything got installed and worked perfectly fine.
But since my phpagi scripts were developed in php5.3, and asterisknow1.7 contain php5.1, it started giving parsing error
as it is not able to recognise the "goto" syntax. For this i have upgraded the php version from 5.1 to 5.3, now the scripts are working fine, but the problem is with the freePBX GUI. Am not able to access the freepbx GUI. when i type the Ip address of my server, i can see the thre options:
Voicemail & Recordings (ARI)
Flash Operator Panel (FOP)
FreePBX Administration
when i click on the option "FreePBX Administration", I can see only the blank page....
Please suggest me where i am going wrong.