![]() ![]() First, add www-data to asterisk group:įix the permissions from amportal, add these lines to the end of /etc/nf:Īt this point, after issuing the following command Sudo cp ~/nf /etc/asterisk/nfĪpache runs as www-data, Asterisk as user asterisk, so we have to change some permission to make both programs work together. Restore nf file, which you backed up before installing FreePBX: Use simple Extensions admin or separate Devices and Users ?Įnter directory in which to store AMP executable scripts: The output from the install script is somewhat like this:Įnter your USERNAME to connect to the 'asterisk' database:Įnter your PASSWORD to connect to the 'asterisk' database:Įnter the hostname of the 'asterisk' database:Įnter a USERNAME to connect to the Asterisk Manager interface:Įnter a PASSWORD to connect to the Asterisk Manager interface:Įnter the path to use for your AMP web root:Įnter the IP ADDRESS or hostname used to access the AMP web-admin:Įnter a PASSWORD to perform call transfers with the Flash Operator Panel: Take note of the passwords you used, you might need them later. were to install freepbx (/usr/share/freepbx), sql password, asterisk password, etc. The install script will ask for some configuration data, eg. Ok, we are ready to install freepbx to /usr/share/freepbx: If you restart Asterisk after installing FreePBX Asterisk dies with no message. FreePBX rewrites the file and trashes Asterisk installation. ![]() GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO IDENTIFIED BY 'dbpassword' īefore running the install command, make a copy of /etc/asterisk/nf. ![]() GRANT ALL PRIVILEGES ON asterisk.* TO IDENTIFIED BY 'dbpassword' With the tables in-place, it's time to create the user with privileges to access and edit those tables. Mysql -u root -p asteriskcdrdb < SQL/cdr_mysql_table.sql Mysql -u root -p asterisk < SQL/newinstall.sql Mysqladmin create asteriskcdrdb -u root -p This will create and import the basic tables to asterisk and asterisk cdr database, run this from the recently extracted directory. Now it’s time to create the database, the user used to access it, and populate the basic tables. Sudo ln -s /etc/freepbx/nf /etc/apache2/sites-available/freepbxĮxtract the tarball and move into the directory With the file created, add the vhost to the sites-enabled directory, with: Options Indexes FollowSymLinks MultiViews In the /etc/freepbx I store the necessary vhost configuration, in /usr/share/freepbx lives the public accessible files, and /var/log/freepbx hosts the logging files.Ĭreate the FreePBX Apache configuration file with the following contentsĬustomLog /var/log/freepbx/access.log combined We also use these directories for FreePBX In this connfiguration we are using a virtual host because I couldn't find out how to have a seperate log file for a directiory. ![]() Sudo apt-get install apache2 apache2-mpm-prefork apache2-utils asterisk asterisk-dahdi asterisk-mp3 asterisk-mysql asterisk-sounds-extra build-essential curl libapache2-mod-php5 libaprutil1-dbd-sqlite3 libaprutil1-ldap libhtml-template-perl libnet-daemon-perl linux-headers-`uname -r` mysql-server php5 php5-cli php5-gd php5-mysql php-db phpmyadmin postfix sox ssl-certīefore running the install command, you have to configure your apache server. Install software and required dependencies Sudo apt-key adv -keyserver -recv-keys 175E41DF Asterisk Manager interface password: amp111Īdd the following two lines to your sources.list ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |