ispCP - Board - Support
Omega Billing Build 4 Setup - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Contributions Area (/forum-40.html)
+--- Forum: Howtos (/forum-41.html)
+--- Thread: Omega Billing Build 4 Setup (/thread-9183.html)

Pages: 1 2 3 4


Omega Billing Build 4 Setup - coopa - 01-13-2010 05:22 AM

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/OmegaBill_v1.0_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


RE: Omega Billing Build 4 Setup - gOOvER - 01-13-2010 03:08 PM

thx for your HowTo Smile


RE: Omega Billing Build 4 Setup - oddyutza - 01-13-2010 05:23 PM

nice how to Big Grin

anyway you must add billing as a panel, not as as a subdomain

that can be done like this

go to /etc/apache2/sites
add Alias /billing /var/www/ispcp/gui/tools/billing
in 00_master.conf (near/under the pma,webmail,etc aliases)

apache2ctl restart

then u should be ok, because nobody want;s to keep it as panel, like webmail, pma and so on
i will release in 5 minutes an update for this!

BR++


RE: Omega Billing Build 4 Setup - mafia - 01-25-2010 02:16 AM

hello thank you for the tutorial can be language
French


RE: Omega Billing Build 4 Setup - Lucan - 01-25-2010 02:57 AM

There are about 10 words that must be translated, don't you think you can use it in english?...


RE: Omega Billing Build 4 Setup - gia777 - 01-31-2010 07:50 AM

Hi! Wheare you open the web page http://www.omegabill.org/ ????

Sorry for my english!


RE: Omega Billing Build 4 Setup - mafia - 03-10-2010 04:43 AM

hello

error

php -q cron_billing.php
Failed loading /usr/lib/php5/20060613/eaccelerator.so: /usr/lib/php5/20060613/eaccelerator.so: cannot open shared object file: No such file or directory

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/ispcp/gui/tools/billing/#CRON FILE/cron_billing.php on line 15

thank you


RE: Omega Billing Build 4 Setup - gOOvER - 03-10-2010 05:42 AM

(03-10-2010 04:43 AM)mafia Wrote:  php -q cron_billing.php
Failed loading /usr/lib/php5/20060613/eaccelerator.so: /usr/lib/php5/20060613/eaccelerator.so: cannot open shared object file: No such file or directory

This has nothing to do with OmegaBill Wink Please check your eAccelerator Config Wink


RE: Omega Billing Build 4 Setup - xantios - 03-10-2010 08:09 AM

Where can i find more information about this project,and can i contribute to it by (for example) translating it to Dutch,Debugging,and maybe some coding?


RE: Omega Billing Build 4 Setup - gOOvER - 03-10-2010 09:50 AM

http://www.isp-control.net/forum/thread-6793-post-54259.html#pid54259

Smile