Download the PHP package 1stel/stratostack-records-generation without Composer
On this page you can find all versions of the php package 1stel/stratostack-records-generation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download 1stel/stratostack-records-generation
More information about 1stel/stratostack-records-generation
Files in 1stel/stratostack-records-generation
Package stratostack-records-generation
Short Description StratoSTACK Bill Records Generation.
License
Informations about the package stratostack-records-generation
Stratostack Bill Records Generation
The StratoSTACK Billing Portal enables developers, system integrators, managed service providers, and others providing services over the Apache CloudStack platform to offer Instance creation, provisioning, and billing without purchasing a cost prohibitive billing portal.
Pre-requisites
Packages
Apache2
MySQL-5.5+
PHP-5.5.9+
Rabbitmq-server
Installation
StratoSTACK uses Composer for dependency management. See its Download Guide for installation instructions.
Ubuntu
Ubuntu 14.04 Package Dependencies
# sudo apt-get install apache2 php5 mysql-server-5.5 rabbitmq-server php5-mysql php5-mcrypt
Uncomment the limit in /etc/default/rabbitmq-server
Enable rabbitMQ management interface:
# rabbitmq-plugins enable rabbitmq_management
Setup a RabbitMQ user for Cloudstack
Browse to http://[rabbitmq ip]:15672/. Click Admin. Add a username and password for Cloudstack to use to communicate with RabbitMQ.
Configure ACS Management Servers to send events to RabbitMQ
On your management servers, edit /etc/cloudstack/management/META-INF/cloudstack/core/spring-event-bus-context.xml
Add the following:
Install StratoSTACK Bill Records Generation server in /var/www/html
# composer create-project --prefer-dist 1stel/stratostack-records-generation recordsGen
Create MySQL database
# mysqladmin -u<user> -p create cloud_admin
The server will also need access to the cloud and cloud_usage databases used by your Cloudstack installation.
Update configuration files
Edit .env, update the DB, CLOUD_DB and CLOUDUSAGE_DB sections.
Edit config/cloud.php, and set the resource limits for your cloud. These limits represent the largest instance size your Cloud supports, or the largest size you want to allow to be created.
Populate the database
# php artisan migrate:install
# php artisan migrate --seed
Update Apache Configuration
Edit /etc/apache2/sites-enabled/000-default.conf
Change DocumentRoot to /var/www/html/recordsGen/public
Add the following under DocumentRoot:
<Directory /var/www/html>
Options FollowSymLinks
AllowOverride All
</Directory>
Enable mod_rewrite:
# a2enmod rewrite
Restart Apache:
# service apache2 restart
Set permissions
# chown www-data.www-data /var/www/html/recordsGen -R
Add event scheduler to cron
Add the following to your crontab:
* * * * * root php /var/www/html/recordsGen/artisan schedule:run >> /dev/null 2>&1
Login to BRG
Browse to http://
Update Settings
Click on the Settings section if you aren’t directed there automatically. Fill in the management server information and click Sync ACS Settings.
All versions of stratostack-records-generation with dependencies
illuminate/html Version ~5.0
laracasts/flash Version ~1.3
php-amqplib/php-amqplib Version ^2.6
1stel/cloudstack-php-client Version ^3.0