magnussolution / magnusbilling7

MagnusBilling is a fast, secure, efficient, high availability, VOIP Billing.
https://www.magnusbilling.org
GNU Lesser General Public License v3.0
180 stars 107 forks source link

CDR not working #571

Open domgmtone opened 2 years ago

domgmtone commented 2 years ago

When I export CDR, I get this message in the csv file. please help


<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">

Internal Server Error    

Internal Server Error

readfile(/var/www/html/mbilling/tmp/cdr_1649335854.csv): failed to open stream: Permission denied

An internal error occurred while the Web server was processing your request. Please contact the webmaster to report this problem.

Thank you.

2022-04-07 09:50:54


domgmtone commented 2 years ago

Solution From MagnusBilling

execute the following commands in SHH session

1) Remove existing "tmp" folder, current folder has 655 permissions. rm -rf /var/www/html/mbilling/tmp

2) Create new tmp folder, new folder has 755 permissions. mkdir /var/www/html/mbilling/tmp

3) Fix permissions for asterisk. chown -R asterisk:asterisk /var/www/html/mbilling/tmp