about The installation of FreePBX, I do not want to say anything, the internet piracy is rubbish, or look at the official bar, the harm I did not know the day of the problem. In the end I do not know where I was wrong, may be a privilege problem, there may be other reasons. Asterisk installation should be no problem, I installed less than three times, but this installation, in the./configure when the man ignored a warning, thought an overall picture, the result of a day, is my fault. About Php,apache and MySQL, directly install the integration tool on the line, do not download, direct Tasksel, and then choose to install lamp on it.
Finally, according to the official website method is smooth:
http://wiki.freepbx.org/pages/viewpage.action?pageId=1409028#InstallingFreePBXonUbuntu12.04Server% 28precisepangolin%29-afewsmallmodificationstoapache.
I'd better copy the contents of the official website here:
Initial System Setup
Configure your root password.
Switch to the Root User
Update Your System
Apt-get update && sudo apt-get upgrade-y |
Install Required Dependencies
Apt-get install-y build-essential linux-headers-' uname-r ' openssh-server apache2 mysql-server mysql-client Bison Flex ph P5 Php5-curl php5-cli php5-mysql php-pear php-db php5-gd Curl sox libncurses5-dev Libssl-dev Libmysqlclient15-dev mpg123 L Ibxml2-dev libnewt-dev sqlite3 libsqlite3-dev pkg-config automake libtool autoconf git subversion uuid Uuid-dev |
Install Peardb
Pear Uninstall db Pear Install db-1.7.14 |
Icon
You may receive a warning:
WARNING: "pear/db" is deprecated in favor of "PEAR/MDB2" |
At this time it's safe to ignore the message
Reboot Server
Install Dependencies for Google Voice
Install Iksemel
Cd/usr/src wget https://iksemel.googlecode.com/files/iksemel-1.4.tar.gz Tar XF iksemel-1.4.tar.gz CD iksemel-* ./configure Make Make install |
Install and Configure Asterisk
Download Asterisk source files.
Cd/usr/src wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4-current.tar.gz wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz |
Compile and install Dahdi.
Cd/usr/src Tar Xvfz dahdi-linux-complete-current.tar.gz CD dahdi-linux-complete-* Make all Make install Make Config |
Compile and install Libpri.
Cd/usr/src Tar Xvfz libpri-1.4-current.tar.gz CD libpri-* Make Make install |
Compile and install Asterisk
Cd/usr/src Tar Xvfz asterisk-11-current.tar.gz CD asterisk-* ./configure contrib/scripts/get_mp3_source.sh Make MenuSelect Make Make install Make Config |
Install Asterisk-extra-sounds
Cd/var/lib/asterisk/sounds wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en-gsm-current.tar.gz Tar Xfz asterisk-extra-sounds-en-gsm-current.tar.gz RM asterisk-extra-sounds-en-gsm-current.tar.gz |
Install and Configure FreePBX
Download and extract FreePBX.
Export ver_freepbx=2.11 Cd/usr/src git clone http://git.freepbx.org/scm/freepbx/framework.git FreePBX CD FreePBX git Checkout Release/${ver_freepbx} |
Now create the Asterisk user and set ownershippermissions.
AddUser asterisk--disabled-password--gecos "asterisk User" Chown asterisk. /var/run/asterisk Chown-r asterisk. /etc/asterisk Chown-r asterisk. /var/{lib,log,spool}/asterisk Chown-r asterisk. /usr/lib/asterisk Mkdir/var/www/html Chown-r asterisk. /var/www/ |
A few small modifications to Apache.
Sed-i ' s/\ (^upload_max_filesize = \). */\120m/'/etc/php5/apache2/php.ini Cp/etc/apache2/apache2.conf/etc/apache2/apache2.conf_orig Sed-i ' S/^\ (user\| group\). */\1 asterisk/'/etc/apache2/apache2.conf Service Apache2 Restart |
Configure Asterisk database in MYSQL.
Export asterisk_db_pw=amp109 Mysqladmin-u Root Create Asterisk-p Mysqladmin-u Root Create Asteriskcdrdb-p Mysql-u Root Asterisk-p < Sql/newinstall.sql Mysql-u Root Asteriskcdrdb-p < Sql/cdr_mysql_table.sql |
Set permissions on MYSQL database.
Mysql-u root-p-E "GRANT all privileges on asterisk.* to [email protected] identified by ' ${ASTERISK_DB_PW} '; Mysql-u root-p-E "GRANT all privileges on asteriskcdrdb.* to [email protected] identified by ' ${ASTERISK_DB_PW} '; Mysql-u root-p-E "flush privileges;" |
Restart Asterisk and install FreePBX.
./start_asterisk Start ./install_amp--webroot/var/www Amportal a MA Installall Amportal a Reload |
Icon
* * If ". /install_amp "fails to run correctly, in terminal type:
./install_amp--username=asteriskuser--password= $ASTERISK _db_pw--webroot/var/www |
Finally, one last mod and start FreePBX.
Ln-s/var/lib/asterisk/moh/var/lib/asterisk/mohmp3 Amportal start |
Start FreePBX
Navigate:
Http://yourlocalipaddress/html or if you prefer http://localhost/admin
Icon
After your enable and update the modules in FreePBX you might see thefollowing error.
Symlink from modules failed
To correct this error does the following:
Delete the list of failed files
Cd/etc/asterisk RM ccss.conf confbridge.conf features.conf sip.conf iax.conf logger.conf extensions.conf sip_notify.conf |
Then on the FreePBX WebUI go to the ' module Admin ' and uninstall Andreinstall the ' Camp on ' module. This should resolve the Symlink issue.
Ubuntu freepbx-2.11.0.40 Installation