Asterisk CDR Viewer: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= Raspbian = | = Raspbian = | ||
<pre> | <pre> | ||
apt-get install | apt-get install git apache2 php5 php5-mysql mysql-server | ||
</pre> | </pre> | ||
mysql-server is not required if you are hosting the database elsewhere. | mysql-server is not required if you are hosting the database elsewhere. | ||
Line 7: | Line 7: | ||
<pre> | <pre> | ||
cd /var/www | cd /var/www | ||
git clone https://github.com/g613/asterisk-cdr-viewer cdr | |||
cp cdr/contrib/httpd/asterisk-cdr-viewer.conf /etc/apache2/conf.d/ | cp cdr/contrib/httpd/asterisk-cdr-viewer.conf /etc/apache2/conf.d/ | ||
</pre> | </pre> | ||
Line 29: | Line 29: | ||
= CentOS = | = CentOS = | ||
<pre> | <pre> | ||
yum -y install | yum -y install git httpd php php-mysql mysql-server | ||
</pre> | </pre> | ||
mysql-server is not required if you are hosting the database elsewhere. | mysql-server is not required if you are hosting the database elsewhere. | ||
Line 35: | Line 35: | ||
<pre> | <pre> | ||
cd /var/www/html | cd /var/www/html | ||
git clone https://github.com/g613/asterisk-cdr-viewer cdr | |||
cp cdr/contrib/httpd/asterisk-cdr-viewer.conf /etc/httpd/conf.d/ | cp cdr/contrib/httpd/asterisk-cdr-viewer.conf /etc/httpd/conf.d/ | ||
</pre> | </pre> | ||
Line 42: | Line 42: | ||
<pre> | <pre> | ||
vi /var/www/html/cdr/include/config.inc.php | vi /var/www/html/cdr/include/config.inc.php | ||
vi /etc/ | vi /etc/httpd/conf.d/asterisk-cdr-viewer.conf | ||
</pre> | </pre> | ||
Line 54: | Line 54: | ||
service httpd restart | service httpd restart | ||
</pre> | </pre> | ||
[[Category : Asterisk]] | |||
[[Category : Asterisk]] [[Category : CDR]] |
Latest revision as of 06:34, 12 August 2015
Raspbian
apt-get install git apache2 php5 php5-mysql mysql-server
mysql-server is not required if you are hosting the database elsewhere.
cd /var/www git clone https://github.com/g613/asterisk-cdr-viewer cdr cp cdr/contrib/httpd/asterisk-cdr-viewer.conf /etc/apache2/conf.d/
Eidt the following file as required
vi /var/www/cdr/include/config.inc.php vi /etc/apache2/conf.d/asterisk-cdr-viewer.conf
When performing some tasks it may take longer than the default 30 second timeout of PHP.
Increase max_execution_time
vi /etc/php5/apache2/php.ini
service apache2 restart
CentOS
yum -y install git httpd php php-mysql mysql-server
mysql-server is not required if you are hosting the database elsewhere.
cd /var/www/html git clone https://github.com/g613/asterisk-cdr-viewer cdr cp cdr/contrib/httpd/asterisk-cdr-viewer.conf /etc/httpd/conf.d/
Eidt the following file as required.
vi /var/www/html/cdr/include/config.inc.php vi /etc/httpd/conf.d/asterisk-cdr-viewer.conf
When performing some tasks it may take longer than the default 30 second timeout of PHP.
Increase max_execution_time
vi /etc/php.ini
service httpd restart