{"id":1254,"date":"2016-08-31T13:11:45","date_gmt":"2016-08-31T13:11:45","guid":{"rendered":"http:\/\/cloudkul.com\/blog\/?p=1254"},"modified":"2017-06-14T11:33:54","modified_gmt":"2017-06-14T11:33:54","slug":"freepbx-installation","status":"publish","type":"post","link":"https:\/\/cloudkul.com\/blog\/freepbx-installation\/","title":{"rendered":"FreePBX Installation"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">In our previous Blog we introduced FreePBX. Here we are with Installation of FreePBX 12 on Ubuntu Server 14.04 LTS. <\/span><\/span><\/span><\/p>\n<p><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">Before proceed installation make sure your machine has OpenSSH server and LAMP Packages.<\/span><\/span><\/span><\/p>\n<p><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">Here are installation steps.<\/span><\/span><\/span><\/p>\n<h4 class=\"western\"><a name=\"InstallingFreePBX12onUbuntuServer14.04LTS-SwitchtotheRootUser\"><\/a> <span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\"><b>Switch to the Root User<\/b><\/span><\/span><\/span><\/h4>\n<pre class=\"lang:default decode:true\">sudo -i<\/pre>\n<h4 class=\"western\"><a name=\"InstallingFreePBX12onUbuntuServer14.04LTS-InstallRequiredDependencies\"><\/a> <span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\"><b>Install Required Dependencies<\/b><\/span><\/span><\/span><\/h4>\n<pre class=\"lang:default decode:true\">apt-get install -y build-essential linux-headers-`uname -r` openssh-server apache2 mysql-server\\\r\nmysql-client bison flex php5 php5-curl php5-cli php5-mysql php-pear php-db php5-gd curl sox\\\r\nlibncurses5-dev libssl-dev libmysqlclient-dev mpg123 libxml2-dev libnewt-dev sqlite3\\\r\nlibsqlite3-dev pkg-config automake libtool autoconf git subversion unixodbc-dev uuid uuid-dev\\\r\nlibasound2-dev libogg-dev libvorbis-dev libcurl4-openssl-dev libical-dev libneon27-dev libsrtp0-dev\\\r\nlibspandsp-dev libmyodbc<\/pre>\n<h4 class=\"western\"><a name=\"InstallingFreePBX12onUbuntuServer14.04LTS-Rebootserver\"><\/a> <span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\"><b>Reboot server<\/b><\/span><\/span><\/span><\/h4>\n<pre class=\"lang:default decode:true \">Reboot<\/pre>\n<h4 class=\"western\" align=\"left\"><a name=\"InstallingFreePBX12onUbuntuServer14.04LTS-InstallDependenciesforGoogleVoice(ifrequired)\"><\/a> <span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\"><b>Install Dependencies for Google Voice (Optional)<\/b><\/span><\/span><\/span><\/h4>\n<h4 class=\"western\" align=\"left\"><a name=\"InstallingFreePBX12onUbuntuServer14.04LTS-Installiksemel\"><\/a> <span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\"><b>Install iksemel<\/b><\/span><\/span><\/span><\/h4>\n<pre class=\"lang:default decode:true\">cd \/usr\/src\r\nwget https:\/\/iksemel.googlecode.com\/files\/iksemel-1.4.tar.gz\r\ntar xf iksemel-1.4.tar.gz\r\ncd iksemel-*\r\n.\/configure\r\nmake\r\nmake install<\/pre>\n<h3 class=\"western\" align=\"left\"><a name=\"InstallingFreePBX12onUbuntuServer14.04LTS-InstallandConfigureAsterisk\"><\/a> <span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\"><b>Install and Configure Asterisk<\/b><\/span><\/span><\/span><\/h3>\n<h4 class=\"western\" align=\"left\"><a name=\"InstallingFreePBX12onUbuntuServer14.04LTS-DownloadAsterisksourcefiles.\"><\/a> <span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\"><b>Download Asterisk source files<\/b><\/span><\/span><\/span><\/h4>\n<pre class=\"lang:default decode:true\">cd \/usr\/src\r\nwget http:\/\/downloads.asterisk.org\/pub\/telephony\/dahdi-linux-complete\/dahdi-linux-complete-current.tar.gz\r\nwget http:\/\/downloads.asterisk.org\/pub\/telephony\/libpri\/libpri-current.tar.gz\r\nwget http:\/\/downloads.asterisk.org\/pub\/telephony\/asterisk\/asterisk-12-current.tar.gz\r\ngit clone https:\/\/github.com\/akheron\/jansson.git\r\ngit clone https:\/\/github.com\/asterisk\/pjproject.git\r\n<\/pre>\n<p align=\"justify\"><a style=\"line-height: 1.5\" name=\"InstallingFreePBX12onUbuntuServer14.04LTS-CompileandinstallDAHDI.\"><\/a><span style=\"color: #808080\"><b style=\"font-size: medium;font-family: 'Bitstream Charter', serif;color: #000000;line-height: 1.5\">\u00a0<span style=\"color: #6b6a6a\">Compile and install DAHDI<\/span><\/b><\/span><\/p>\n<p><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">Only required if using a physical server and installing telecom hardware.<\/span><\/span><\/span><\/p>\n<pre class=\"lang:default decode:true\">cd \/usr\/src\r\ntar xvfz libpri-current.tar.gz\r\ncd libpri-*\r\nmake\r\nmake install\r\n<\/pre>\n<p><a style=\"line-height: 1.5\" name=\"InstallingFreePBX12onUbuntuServer14.04LTS-Compileandinstallpjproject\"><\/a><span style=\"color: #6b6a6a\"><b style=\"font-size: medium;font-family: 'Bitstream Charter', serif;color: #000000;line-height: 1.5\">\u00a0<span style=\"color: #6e6e6e\">Compile and install pjproject<\/span><\/b><\/span><\/p>\n<p style=\"text-align: justify\" align=\"justify\"><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">Asterisk 12 and later versions contain two SIP stacks: one, the original chan_sip SIP channel driver that has been present in all previous releases of Asterisk, and a new SIP stack that is based on <\/span><\/span><\/span><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">this <\/span><\/span><\/span><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">pjprojec<\/span><\/span><\/span><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">t.<\/span><\/span><\/span><\/p>\n<pre class=\"lang:default decode:true\">cd \/usr\/src\/pjproject\r\n.\/configure --enable-shared --disable-sound --disable-resample --disable-video \u2013disable-\r\nopencore-amr\r\nmake dep\r\nmake\r\nmake install<\/pre>\n<h4 class=\"western\"><a name=\"InstallingFreePBX12onUbuntuServer14.04LTS-CompileandInstalljansson\"><\/a> <span style=\"color: #333333\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\"><b>Compile and Install jansson<\/b><\/span><\/span><\/span><\/h4>\n<p align=\"left\"><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">Jansson is a C library for encoding, decoding and manipulating JSON data.<\/span><\/span><\/span><\/p>\n<pre class=\"lang:default decode:true\">cd \/usr\/src\/jansson\r\nautoreconf -i\r\n.\/configure\r\nmake\r\nmake install<\/pre>\n<p align=\"left\"><a name=\"InstallingFreePBX12onUbuntuServer14.04LTS-CompileandinstallAsterisk\"><\/a> <span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\"><b>Compile and install Asterisk<\/b><\/span><\/span><\/span><\/p>\n<pre class=\"lang:default decode:true\">cd \/usr\/src\r\ntar xvfz asterisk-12-current.tar.gz\r\ncd asterisk-*\r\n.\/configure\r\ncontrib\/scripts\/get_mp3_source.sh\r\nmake menuselect\r\n<\/pre>\n<p style=\"text-align: justify\">You will be prompted at the point to pick which modules to build. Most of them will be enabled, but if you want to have MP3 support, you need to manually turn on &#8216;format_mp3&#8217; on the first page.<\/p>\n<p style=\"text-align: justify\" align=\"justify\"><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">Turn on cdr_mysql, as Asterisk store CDRs into mysql server database.<\/span><\/span><\/span><\/p>\n<p style=\"text-align: justify\" align=\"justify\"><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">Turn off chan_pjsip in Channel Drivers if you want only chan_sip channel to be on. Otherwise, it will create confliction of ports.<\/span><\/span><\/span><\/p>\n<p style=\"text-align: justify\" align=\"justify\"><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">Incase, you are getting duplicate rows for one call in CDR Reports then, go to Call Detail Recording and Turn off cdr_adaptive_odbc and cdr_odbc respectively.<\/span><\/span><\/span><\/p>\n<p align=\"justify\"><a href=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2016\/08\/menu.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1262 aligncenter\" src=\"http:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2016\/08\/menu-300x156.png\" alt=\"menu\" width=\"436\" height=\"227\" \/><\/a><\/p>\n<p align=\"justify\"><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">After selecting &#8216;Save &amp; Exit&#8217; you can then continue.<\/span><\/span><\/span><\/p>\n<pre class=\"lang:default decode:true\">make\r\nmake install\r\nmake config\r\nldconfig<\/pre>\n<h4 class=\"western\" align=\"justify\"><a name=\"InstallingFreePBX12onUbuntuServer14.04LTS-InstallAsterisk-Extra-Sounds\"><\/a> <span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\"><b>Install Asterisk-Extra-Sounds<\/b><\/span><\/span><\/span><\/h4>\n<p style=\"text-align: justify\" align=\"justify\"><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">this installs the (8khz) &#8216;wav&#8217; soundfiles. If you&#8217;re running G722 (High Definition &#8216;Wideband&#8217;) audio, you also want to download the 722 codec pack. If you&#8217;re not planning on using Wideband, you can skip that part.<\/span><\/span><\/span><\/p>\n<pre class=\"lang:default decode:true\">cd \/var\/lib\/asterisk\/sounds\r\nwget http:\/\/downloads.asterisk.org\/pub\/telephony\/sounds\/asterisk-extra-sounds-en-wav-current.tar.gz\r\ntar xfz asterisk-extra-sounds-en-wav-current.tar.gz\r\nrm -f asterisk-extra-sounds-en-wav-current.tar.gz\r\n<\/pre>\n<p align=\"justify\"><span style=\"color: #808080\"><b style=\"font-size: medium;font-family: 'Bitstream Charter', serif;color: #000000;line-height: 1.5\"><code class=\"western\">Wideband Audio download<\/code><\/b><\/span><\/p>\n<pre class=\"lang:default decode:true\">wget http:\/\/downloads.asterisk.org\/pub\/telephony\/sounds\/asterisk-extra-sounds-en-g722-current.tar.gz\r\ntar xfz asterisk-extra-sounds-en-g722-current.tar.gz\r\nrm -f asterisk-extra-sounds-en-g722-current.tar.gz<\/pre>\n<h3 class=\"western\" align=\"left\"><a name=\"InstallingFreePBX12onUbuntuServer14.04LTS-InstallandConfigureFreePBX\"><\/a> <span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\"><b>Install and Configure FreePBX<\/b><\/span><\/span><\/span><\/h3>\n<h4 class=\"western\" align=\"left\"><a name=\"InstallingFreePBX12onUbuntuServer14.04LTS-DownloadandextractFreePBX.\"><\/a><b style=\"font-size: medium;font-family: 'Bitstream Charter', serif;color: #000000;line-height: 1.5\">\u00a0<span style=\"color: #6e6e6e\">Download and extract FreePBX<\/span><\/b><\/h4>\n<pre class=\"lang:default decode:true\">wget http:\/\/mirror.freepbx.org\/modules\/packages\/freepbx\/freepbx-12.0-latest.tgz\r\ntar vxfz freepbx-12.0-latest.tgz\r\ncd freepbx<\/pre>\n<h4 class=\"western\" align=\"left\"><a name=\"InstallingFreePBX12onUbuntuServer14.04LTS-NowcreatetheAsteriskuserandsetownershippermissions.\"><\/a> <span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\"><b>Now create the Asterisk user and set ownership permissions.<\/b><\/span><\/span><\/span><\/h4>\n<pre class=\"lang:default decode:true\">useradd -m asterisk\r\nchown asterisk. \/var\/run\/asterisk\r\nchown -R asterisk. \/etc\/asterisk\r\nchown -R asterisk. \/var\/{lib,log,spool}\/asterisk\r\nchown -R asterisk. \/usr\/lib\/asterisk\r\nrm -rf\/var\/www\/html<\/pre>\n<h4 class=\"western\"><a name=\"InstallingFreePBX12onUbuntuServer14.04LTS-AfewsmallmodificationstoApache.\"><\/a> <span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\"><b>A few small modifications to Apache.<\/b><\/span><\/span><\/span><\/h4>\n<p align=\"left\"><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">Change webserver default user and group from apache to asterisk.<\/span><\/span><\/span><\/p>\n<p align=\"left\"><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">Change default \u201cupload_max_filesize\u201d to 120M to allow larger music on hold files.<\/span><\/span><\/span><\/p>\n<pre class=\"lang:default decode:true\">sed -i 's\/\\(^upload_max_filesize = \\).*\/\\120M\/' \/etc\/php5\/apache2\/php.ini\r\ncp \/etc\/apache2\/apache2.conf \/etc\/apache2\/apache2.conf_orig\r\nsed -i 's\/^\\(User\\|Group\\).*\/\\1 asterisk\/' \/etc\/apache2\/apache2.conf\r\nservice apache2 restart<\/pre>\n<p><a name=\"InstallingFreePBX12onUbuntuServer14.04LTS-ConfigureODBC\"><\/a> <span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\"><b>Configure ODBC<\/b><\/span><\/span><\/span><\/p>\n<p><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">Edit \/etc\/odbcinst.ini and add the following.<\/span><\/span><\/span><\/p>\n<ul>\n<li><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\"><u>NOTE<\/u> : this command assumes you are installing to a new machine, and that the file is empty. If this is not a freshly installed machine, please manually verify the contents of the file, rather than just copying and pasting the lines below. The &#8216;EOF&#8217; does no go in the file, it simply signals to the &#8216;cat&#8217; command that you have finished pasting.<\/span><\/span><\/span><\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">cat &gt;&gt; \/etc\/odbcinst.ini &lt;&lt; EOF<\/pre>\n<pre class=\"lang:default decode:true\">[MySQL]\r\nDescription = ODBC for MySQL\r\nDriver = \/usr\/lib\/x86_64-linux-gnu\/odbc\/libmyodbc.so\r\nSetup = \/usr\/lib\/x86_64-linux-gnu\/odbc\/libodbcmyS.so\r\nFileUsage = 1\r\n\r\nEOF<\/pre>\n<p align=\"justify\"><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">You may need to verify these paths, if you&#8217;re not on a x86_64 machine. <\/span><\/span><\/span><\/p>\n<p align=\"justify\"><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">Edit or create \/etc\/odbc.ini and add the following section. Note that, again, this command assumes you are installing to a new machine, and the file is empty. Please manually verify the contents of the files if this is not the case.<\/span><\/span><\/span><\/p>\n<pre class=\"lang:default decode:true \">cat &gt;&gt; \/etc\/odbc.ini &lt;&lt; EOF<\/pre>\n<pre class=\"lang:default decode:true\">[MySQL-asteriskcdrdb]\r\nDescription=MySQL connection to 'asteriskcdrdb' database\r\ndriver=MySQL\r\nserver=localhost\r\ndatabase=asteriskcdrdb\r\nPort=3306\r\nSocket=\/var\/run\/mysqld\/mysqld.sock\r\noption=3<\/pre>\n<pre class=\"lang:default decode:true \">EOF<\/pre>\n<p align=\"justify\"><a name=\"InstallingFreePBX12onUbuntuServer14.04LTS-PrepareMySQL\"><\/a> <span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\"><b>Prepare MySQL<\/b><\/span><\/span><\/span><\/p>\n<p align=\"justify\"><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">now you need to generate a secure password for FreePBX to use to talk to MySQL.<\/span><\/span><\/span><\/p>\n<pre class=\"lang:default decode:true\">Export ASTERISK_DB_PW=`dd if=\/dev\/urandom bs=1 count=32 2&gt;\/dev\/null | base64 - | cut -c2-18`<\/pre>\n<p align=\"justify\"><span style=\"color: #333333\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: small\"><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">That will generate a quasi-random 16 character long password, which should be secure enough for most things. If you had set the MySQL &#8216;root&#8217; password to be something when you were installing the machine, you will need to add a -p<\/span><\/span><\/span><em><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">yourpassword<\/span><\/span><\/span><\/em><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">\u00a0flag to the following lines.<\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<h4 class=\"western\"><a name=\"InstallingFreePBX12onUbuntuServer14.04LTS-ConfigureAsteriskdatabaseinMYSQL.\"><\/a> <span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\"><b>Configure Asterisk database in MYSQL.<\/b><\/span><\/span><\/span><\/h4>\n<pre class=\"lang:default decode:true\">mysqladmin -u root -pYourPassword create asterisk\r\nmysqladmin -u root -pYourPassword create asteriskcdrdb<\/pre>\n<h4 class=\"western\" align=\"left\"><span style=\"color: #808080\"> <span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">Set permissions on MYSQL database<\/span><\/span><\/span><\/h4>\n<pre class=\"lang:default decode:true\">mysql -u root -pYourPassword -e \"GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY 'YourPassword';\"\r\nmysql -u root -pYourPassword -e \"GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY 'YourPassword';\"\r\nmysql -u root -pYourPassword -e \"flush privileges;\"\r\n<\/pre>\n<h4 class=\"western\" align=\"left\"><a name=\"InstallingFreePBX12onUbuntuServer14.04LTS-RestartAsteriskandinstallFreePBX.\"><\/a><b style=\"font-size: medium;font-family: 'Bitstream Charter', serif;color: #000000;line-height: 1.5\">\u00a0<span style=\"color: #7d7474\">Restart Asterisk and install FreePBX<\/span><\/b><\/h4>\n<pre class=\"lang:default decode:true\">.\/start_asterisk start\r\n.\/install_amp --installdb --username=asteriskuser --password=YourPassword\r\namportal chown\r\namportal a ma installall\r\namportal a reload\r\namportal a ma refreshsignatures\r\namportal chown<\/pre>\n<p align=\"left\"><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">You may get errors such as:<\/span><\/span><\/span><\/p>\n<blockquote>\n<p style=\"text-align: justify;padding-left: 30px\"><span style=\"color: #808080\">\u00a0Please wait&#8230;<\/span><\/p>\n<p style=\"text-align: justify;padding-left: 30px\"><span style=\"color: #808080\">\u00a0 \/usr\/local\/sbin\/amportal: line 47: [FATAL]: command not foun<\/span><\/p>\n<p style=\"text-align: justify;padding-left: 30px\"><span style=\"color: #808080\"><code class=\"western\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">\/var\/lib\/asterisk\/bin\/freepbx_engine: line 98: [FATAL]: command not found<\/span><\/span><\/code><\/span><\/p>\n<p style=\"text-align: justify;padding-left: 30px\"><span style=\"color: #808080\"><code class=\"western\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">****WARNING: ERROR IN CONFIGURATION ***<\/span><\/span><\/code><\/span><\/p>\n<p style=\"text-align: justify;padding-left: 30px\"><span style=\"color: #808080\"><code class=\"western\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">astrundir in '\/etc\/asterisk' is set to but the directory does not exists. Attempting to create it with: 'mkdir -p ' mkdir: missing operand Try 'mkdir --help' for more information. **** ERROR: COULD NOT CREATE **** Attempt to execute 'mkdir -p ' failed with an exit code of 1 You must create this directory and the try again.<\/span><\/span><\/code><\/span><\/p>\n<\/blockquote>\n<p style=\"padding-left: 30px;text-align: justify\" align=\"left\"><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">We would suggest you to enter all passwords carefully. Incase, you are getting such error or You may have to manually set the password in \/etc\/freepbx.conf if you will get errors during the freepbx installation, specifically, when you run the command:<\/span><\/span><\/span><\/p>\n<pre class=\"lang:default decode:true \">amportal a ma installall\r\n<\/pre>\n<h4 class=\"western\" align=\"left\"><a name=\"InstallingFreePBX12onUbuntuServer14.04LTS-Finally,onelastmodandstartFreePBX.\"><\/a>\u00a0<span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\"><b>Finally, one last mod to Make a link to file and start FreePBX<\/b><\/span><\/span><\/span><\/h4>\n<pre class=\"lang:default decode:true\">ln -s \/var\/lib\/asterisk\/moh \/var\/lib\/asterisk\/mohmp3\r\namportal restart<\/pre>\n<p align=\"left\"><a name=\"InstallingFreePBX12onUbuntuServer14.04LTS-StartFreePBX\"><\/a> <span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\"><b>Start FreePBX<\/b><\/span><\/span><\/span><\/p>\n<h4 class=\"western\" align=\"left\"><a name=\"InstallingFreePBX12onUbuntuServer14.04LTS-Navigate:\"><\/a> <span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\"><b>Navigate:<\/b><\/span><\/span><\/span><\/h4>\n<h4 class=\"western\" align=\"left\"><span style=\"color: #000000\"><span style=\"font-family: 'Bitstream Charter', serif\"><span style=\"font-size: medium\">Now FreePBX is installed, it will be available via Apache. Open up your web browser and visit:<\/span><\/span><\/span><\/h4>\n<blockquote><p><em>http:\/\/Address.Of.FreePBX.Server\/admin<\/em><\/p><\/blockquote>\n<p>A Browser of FreePBX will open. Then, it will ask for creation of an account for admin. Create an account as admin who will have all the authority of \u00a0freePBX browser.<\/p>\n<p>that&#8217;s all are installation part , will be here soon with modules setup like extensions etc.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center\">\u00a0 \u00a0 \u00a0 <a href=\"http:\/\/cloudkul.com\/contact\/\" target=\"_blank\">IN CASE OF ANY QUERY, CONTACT US<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; In our previous Blog we introduced FreePBX. Here we are with Installation of FreePBX <a class=\"text-primary\" title=\"read more\" href=\"https:\/\/cloudkul.com\/blog\/freepbx-installation\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":9,"featured_media":1280,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[55,60,58,59],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>FreePBX Installation - Cloudkul<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudkul.com\/blog\/freepbx-installation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"FreePBX Installation - Cloudkul\" \/>\n<meta property=\"og:description\" content=\"&nbsp; In our previous Blog we introduced FreePBX. Here we are with Installation of FreePBX [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudkul.com\/blog\/freepbx-installation\/\" \/>\n<meta property=\"og:site_name\" content=\"Cloudkul\" \/>\n<meta property=\"article:published_time\" content=\"2016-08-31T13:11:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-06-14T11:33:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2016\/08\/Asterisk-PBX-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"848\" \/>\n\t<meta property=\"og:image:height\" content=\"422\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"sanchita sengupta\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudkul.com\/blog\/freepbx-installation\/\",\"url\":\"https:\/\/cloudkul.com\/blog\/freepbx-installation\/\",\"name\":\"FreePBX Installation - Cloudkul\",\"isPartOf\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\"},\"datePublished\":\"2016-08-31T13:11:45+00:00\",\"dateModified\":\"2017-06-14T11:33:54+00:00\",\"author\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/3f234c864fed11b27f2107ff62404537\"},\"breadcrumb\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/freepbx-installation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudkul.com\/blog\/freepbx-installation\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudkul.com\/blog\/freepbx-installation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"FreePBX Installation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\",\"url\":\"https:\/\/cloudkul.com\/blog\/\",\"name\":\"Cloudkul\",\"description\":\"Host your eCommerce Store on AWS with Optimized Performance\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cloudkul.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/3f234c864fed11b27f2107ff62404537\",\"name\":\"sanchita sengupta\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/161a19864296b3d9c2a1146b7501c225?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/161a19864296b3d9c2a1146b7501c225?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"caption\":\"sanchita sengupta\"},\"sameAs\":[\"http:\/\/cloudkul.com\/blog\"],\"url\":\"https:\/\/cloudkul.com\/blog\/author\/sanchita-sengupta138\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"FreePBX Installation - Cloudkul","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cloudkul.com\/blog\/freepbx-installation\/","og_locale":"en_US","og_type":"article","og_title":"FreePBX Installation - Cloudkul","og_description":"&nbsp; In our previous Blog we introduced FreePBX. Here we are with Installation of FreePBX [...]","og_url":"https:\/\/cloudkul.com\/blog\/freepbx-installation\/","og_site_name":"Cloudkul","article_published_time":"2016-08-31T13:11:45+00:00","article_modified_time":"2017-06-14T11:33:54+00:00","og_image":[{"width":848,"height":422,"url":"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2016\/08\/Asterisk-PBX-1.png","type":"image\/png"}],"author":"sanchita sengupta","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/cloudkul.com\/blog\/freepbx-installation\/","url":"https:\/\/cloudkul.com\/blog\/freepbx-installation\/","name":"FreePBX Installation - Cloudkul","isPartOf":{"@id":"https:\/\/cloudkul.com\/blog\/#website"},"datePublished":"2016-08-31T13:11:45+00:00","dateModified":"2017-06-14T11:33:54+00:00","author":{"@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/3f234c864fed11b27f2107ff62404537"},"breadcrumb":{"@id":"https:\/\/cloudkul.com\/blog\/freepbx-installation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudkul.com\/blog\/freepbx-installation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cloudkul.com\/blog\/freepbx-installation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"FreePBX Installation"}]},{"@type":"WebSite","@id":"https:\/\/cloudkul.com\/blog\/#website","url":"https:\/\/cloudkul.com\/blog\/","name":"Cloudkul","description":"Host your eCommerce Store on AWS with Optimized Performance","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudkul.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/3f234c864fed11b27f2107ff62404537","name":"sanchita sengupta","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/161a19864296b3d9c2a1146b7501c225?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/161a19864296b3d9c2a1146b7501c225?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","caption":"sanchita sengupta"},"sameAs":["http:\/\/cloudkul.com\/blog"],"url":"https:\/\/cloudkul.com\/blog\/author\/sanchita-sengupta138\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/1254"}],"collection":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/comments?post=1254"}],"version-history":[{"count":40,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/1254\/revisions"}],"predecessor-version":[{"id":1299,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/1254\/revisions\/1299"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/media\/1280"}],"wp:attachment":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/media?parent=1254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/categories?post=1254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/tags?post=1254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}