A2Billing Auto Installer for CentOS 5 (i386 or x86_64)

Hi buds,

I am sharing a script that I have worked for a couple of days for my work in order to keep things easy and automated for me as I normally have to install some A2Billing boxes and it’s a quite long and tedius process. For more info here is the README:

README

This script allows you to install A2Billing on a clean install of CentOS 5 (Either i386 or x86_64) just ‘Base’ is required to install it.

Among other things the script does:

- Install & Configure of LAMP (Requesting MySQL root & a2billing password)
- Install A2Billing
- Configure it for production state
- Compile from sources the Sangoma Wanpipe drivers if desired
- Disable SELinux & Firewall
- Disable unused default services in CentOS 5
- Install Asterisk from Digium repositories
- Configure cronjobs, logs, etc

HOW TO INSTALL

Be sure to have the ‘screen’ package installed, in order to do it you can run:

yum -y install screen

Then you have to execute the script on a screen session, to do this run:

screen

And then execute the script:

chmod +x a2billing_setup.sh
./a2billing_setup.sh

Source code available at: https://github.com/amontalban/A2Billing-Install-Script

Thanks for checking it out!

    • Glenn
    • December 26th, 2011

    This looks fantastic. I have never been able to get A2b running. Do I then need to install freepbx afterward to have a front end for did’s etc. Is freepbx easy to install?

    Thanks for a great script

  1. Hi Glenn,

    This script will install all the A2Billing requirements, and also the web interface, you only need to access to http://yourserverip/billing/admin and start using it.

    Thanks for your comment and let me know if you think it can be improved in some way!

    • Glenn
    • December 27th, 2011

    I can’t actuall get it to work. I get the following error

    ./a2billing_setup.sh: line 4: syntax error near unexpected token `newline’
    ./a2billing_setup.sh: line 4: `’

    Base headless install with screen installed

  2. Hi Glenn,

    How did you downloaded the script? Using the zip link? https://github.com/amontalban/A2Billing-Install-Script/zipball/master

    Let me know!, thanks!

    BTW, are you using CentOS 5?

    • Glenn
    • December 27th, 2011

    HI

    Yes Centos 5.5. I did a wget https://github.com/amontalban/A2Billing-Install-Script/blob/master/a2billing_setup.sh

    Taking the url from your link above

    Thanks

  3. Hi Glenn,

    I recommend you to use the following link to download the source code (Also to use the latest one because I just made some commits based on some comments):

    https://github.com/amontalban/A2Billing-Install-Script/raw/master/a2billing_setup.sh

    Let me know if it works for you now!

    Thanks!!!

    • Glenn
    • December 30th, 2011

    Hi Downloaded from https://github.com/amontalban/A2Billing-Install-Script/zipball/master and worked a treat.

    Not sure why it did not work the normal why but hay ho.

    Thanks for you help

    • Okes
    • January 2nd, 2012

    Hi Andres:

    Thanks for sharing the install script.

    Wanted to know, I only want to install A2billing and Asterisk as I already have mySQL and Apache.

    Will the script help in doing that?

    Thanks.

  4. Hi Okes,

    Thanks for checking out! I am sorry but this script install everything (Apache/MySQL/Asterisk/A2Billing) and doesn’t have options to select specific modules so I don’t recommend you running it on a production system as it’s designed to run on freshly installed CentOS 5.

    Cheers!

    • Diego Verlato
    • January 4th, 2012

    Goood work my friend. If i want to install in CENTOS 6.2, i can ? How?

    Thanks

  5. Hi Diego,

    Sorry but this version is only functional for CentOS 5 (If you have some experience with CentOS 6 and scripting I am open to your contribution :) )

    Thanks for your visit!

  6. Andres,

    Thank you, but I am unable to locate the CentOS 5 iso as anything I find is CentOS-5.7 or better when you *THINK* you’ve found CentOS 5.

    Does anyone know of a download link?

    Thank you in advance

    • brian
    • February 20th, 2012

    Is this server pre hardend or do we have to change ampass pass phrase and add fail2ban and all the other usual precautions for asterisk???????????

  7. Hi Brian,

    No the script doesn’t secure the server in any point, you have to do all by yourself. If you think you can help with that please fork the project in Github and send me your changes :) .

    Thanks for checking!

  1. No trackbacks yet.