Current time: 11-24-2024, 05:02 PM Hello There, Guest! (LoginRegister)


Post Reply 
Omega Billing Build 4 Setup
Author Message
coopa Offline
Junior Member
*

Posts: 12
Joined: Dec 2009
Reputation: 0
Post: #1
Omega Billing Build 4 Setup
I have just installed Oddyutza's awesome Billing and Automated invoice system but i felt that the installation instructions where not concise enough, i have posted the steps i used in case anyone is struggling.

# cd /usr/local/src
# mkdir billing
# cd billing
# wget http://www.omegabill.org/releases/OmegaB...Build4.zip
# unzip OmegaBill_v1.0_Build4.zip
# mkdir /var/www/ispcp/gui/tools/billing
# cp -r OmegaBill_v1.0_Build4/* /var/www/ispcp/gui/tools/billing
# chown -R vu2000:www-data /var/www/ispcp/gui/tools/billing
# cd /var/www/ispcp/gui/tools/billing/includes
# pico configuration.php

Change

// MySQL database configuration:
$server = "localhost";
$user = "billing";
$password = "mypass";
$dbname = "ispcp_billing";

$installpath = "http://billing.domain.tld/";

# cd ../
# cd \#SQL\ FILE/
# mysql -u root -p

CREATE DATABASE omegabilling DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON ispcp_billing.* TO billing@localhost IDENTIFIED BY 'mypass';
quit

#mysql -u billing -p omegabilling < ispcp_billing.sql

# cd ../
# cd \#CRON\ FILE/
# pico cron_billing.php

Change

#ispCP config
$ispCP_host = "localhost";
$ispCP_user = "ispcp username";
$ispCP_pass = "ispcp pass";
$ispCP_db = "ispcp";

#Billing config
$Billing_host = "localhost";
$Billing_user = "billing";
$Billing_pass = "mypass";
$Billing_db = "ispcp_billing";

#php -q cron_billing.php
#pico /etc/apache2/sites-available/00_master.conf

Alias /billing /var/www/ispcp/gui/tools/billing/

#pico /etc/apache2/sites-available/07-billing

<VirtualHost XXX.XXX.XXX.XXX:80>
ServerAdmin webmaster@yourdomain.tld
DocumentRoot /var/www/ispcp/gui/tools/billing

ServerName billing.yourdomain.tld
ServerAlias billing.*

ErrorLog /var/log/apache2/users/billing-error.log
TransferLog /var/log/apache2/users/billing-access.log
CustomLog /var/log/apache2/billing-traf.log traff
CustomLog /var/log/apache2/billing-combined.log combined

<IfModule suexec_module>
SuexecUserGroup vu2000 vu2000
</IfModule>

<Directory /var/www/ispcp/gui/tools/billing>
Options -Indexes Includes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<IfModule mod_fcgid.c>
<Directory /var/www/ispcp/gui/tools/billing>
FCGIWrapper /var/www/fcgi/master/php5-fcgi-starter .php
Options +ExecCGI
</Directory>
<Directory "/var/www/fcgi/master">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_fastcgi.c>
ScriptAlias /php5/ /var/www/fcgi/master/
<Directory "/var/www/fcgi/master">
AllowOverride None
Options +ExecCGI MultiViews -Indexes
Order allow,deny
Allow from all
</Directory>
</IfModule>

<IfModule mod_php5.c>
<Directory /var/www/ispcp/gui/tools/billing>
php_admin_value open_basedir "/var/www/ispcp/gui/tools/billing/:/etc/ispcp/:/var/run/ispcp.lock:/proc/:/bin/df:/bin/mount:/var/log/rkhunter.log:/var/log/chkrootkit.log:/usr/share/php/"
php_admin_value session.save_path "/var/www/ispcp/gui/phptmp/"
php_admin_value upload_tmp_dir "/var/www/ispcp/gui/phptmp/"
</Directory>
</IfModule>


</VirtualHost>

# a2ensite 07-billing
# /etc/init.d/apache2 reload

Goto http://billing.yourdomain.tld

Username: admin
Password: omegabill

when using php -q cron_billing.php to add the cron job i can only seem to get it working using "root" as the ispcp admin user
(This post was last modified: 01-13-2010 06:05 AM by coopa.)
01-13-2010 05:22 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Omega Billing Build 4 Setup - coopa - 01-13-2010 05:22 AM
RE: Omega Billing Build 4 Setup - gOOvER - 01-13-2010, 03:08 PM
RE: Omega Billing Build 4 Setup - oddyutza - 01-13-2010, 05:23 PM
RE: Omega Billing Build 4 Setup - mafia - 01-25-2010, 02:16 AM
RE: Omega Billing Build 4 Setup - Lucan - 01-25-2010, 02:57 AM
RE: Omega Billing Build 4 Setup - gia777 - 01-31-2010, 07:50 AM
RE: Omega Billing Build 4 Setup - mafia - 03-10-2010, 04:43 AM
RE: Omega Billing Build 4 Setup - gOOvER - 03-10-2010, 05:42 AM
RE: Omega Billing Build 4 Setup - xantios - 03-10-2010, 08:09 AM
RE: Omega Billing Build 4 Setup - gOOvER - 03-10-2010, 09:50 AM
RE: Omega Billing Build 4 Setup - mafia - 03-15-2010, 08:38 PM
RE: Omega Billing Build 4 Setup - enrico73 - 03-26-2010, 05:11 AM
RE: Omega Billing Build 4 Setup - PcTuning - 03-28-2010, 04:55 AM
RE: Omega Billing Build 4 Setup - mafia - 05-07-2010, 04:52 AM
RE: Omega Billing Build 4 Setup - mafia - 10-06-2010, 07:19 AM
RE: Omega Billing Build 4 Setup - mr.x - 10-25-2010, 05:27 AM
RE: Omega Billing Build 4 Setup - oddyutza - 10-26-2010, 08:21 PM
RE: Omega Billing Build 4 Setup - mr.x - 11-29-2010, 03:34 AM
RE: Omega Billing Build 4 Setup - mr.x - 12-07-2010, 06:18 PM
RE: Omega Billing Build 4 Setup - Anixter - 12-08-2010, 09:34 AM
RE: Omega Billing Build 4 Setup - mr.x - 12-08-2010, 04:41 PM
RE: Omega Billing Build 4 Setup - oddyutza - 01-27-2011, 07:55 PM
RE: Omega Billing Build 4 Setup - shaggy - 04-19-2011, 01:16 AM
RE: Omega Billing Build 4 Setup - mr.x - 04-19-2011, 01:23 AM
RE: Omega Billing Build 4 Setup - shaggy - 04-19-2011, 12:59 PM
RE: Omega Billing Build 4 Setup - shaggy - 04-21-2011, 10:08 PM
RE: Omega Billing Build 4 Setup - mr.x - 04-21-2011, 11:14 PM
RE: Omega Billing Build 4 Setup - shaggy - 04-22-2011, 10:29 AM
RE: Omega Billing Build 4 Setup - oddyutza - 05-01-2011, 03:59 AM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)