Star2Billing / a2billing

A2Billing is a telecom switch and billing system capable of providing and billing a range of telecom products and services to customers such as calling card products, residential and wholesale VoIP termination, DID resale and callback services.
www.asterisk2billing.org
Other
181 stars 174 forks source link

Error : cannot load conf : load_conf_db #47

Closed starkovv closed 11 years ago

starkovv commented 11 years ago

Ubuntu Server 12.04 LTS

While installing A2billing 2 according to INSTALL.rst at the end of "2.6. Step 5: Install web-based Graphical interfaces" got this error when I tried to visit http://<ip-addr>/a2billing/admin:

Error : cannot load conf : load_conf_db

What does it mean?

areski commented 11 years ago

you might be missing the configuration file which should be located in /etc/a2billing.conf

starkovv commented 11 years ago

It on its place:

$ ll /etc | grep a2
-rw-r--r--   1 root        root         1637 Apr  8 14:06 a2billing.conf

Is there any other causes of this error?

areski commented 11 years ago

strange maybe it s permission issue...

starkovv commented 11 years ago

This is what I did for web interface:

sudo mkdir /var/www/a2billing

sudo mkdir -p /var/lib/a2billing/script

sudo mkdir -p /var/run/a2billing

sudo cp -rf ~/src/a2billing/a2billing-master/admin /var/www/a2billing/

sudo cp -rf ~/src/a2billing/a2billing-master/agent /var/www/a2billing/

sudo cp -rf ~/src/a2billing/a2billing-master/customer /var/www/a2billing/

sudo cp -rf ~/src/a2billing/a2billing-master/common /var/www/a2billing/

sudo chmod 755 /var/www/a2billing/admin/templates_c

sudo chmod 755 /var/www/a2billing/customer/templates_c

sudo chmod 755 /var/www/a2billing/agent/templates_c

sudo touch /var/www/a2billing/index.html

sudo chown -R www-data:www-data /var/www
areski commented 11 years ago

that looks good, you might want to troubleshoot the code. There is a forum to discuss installation issue which is a better place for this discussion

starkovv commented 11 years ago

Just removed / character from mysql password and now everything looks good!