*** Requirements ***

1. PHP SOAP
apt-get install php-soap
apt-get install php-pear
apt-get install php5-curl

2. PEAR SOAP 
pear install --force SOAP

3. Apache modules

Enable the rewrite module of Apache

a2enmod  rewrite

Check that the module is enabled:
vi /etc/apache2/mods­enabled/rewrite.load
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so


*** CakePHP ***

1. Create database
2. Add user and table structures
3. Change path to webservices (config/database.php)


*** Configuration ***

1. Create directive in 000-default

vi /etc/apache2/sites-enabled/000-default
        <Directory /var/www/a2billing>
                Options FollowSymLinks
                AllowOverride All
                Options +Indexes
        </Directory>


2. Remove .htaccess
rm /var/www/a2billing/webservice/.htaccess
rm /var/www/a2billing/webservice/lib/common/.htaccess

3. Create log directory

mkdir /var/log/a2billing



