Current time: 11-15-2024, 03:48 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
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #2
RE: Omega Billing Build 4 Setup
thx for your HowTo Smile
01-13-2010 03:08 PM
Visit this user's website Find all posts by this user Quote this message in a reply
oddyutza Offline
Junior Member
*

Posts: 132
Joined: Mar 2007
Reputation: 2
Post: #3
RE: Omega Billing Build 4 Setup
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++
01-13-2010 05:23 PM
Find all posts by this user Quote this message in a reply
mafia Offline
Banned

Posts: 170
Joined: May 2008
Post: #4
RE: Omega Billing Build 4 Setup
hello thank you for the tutorial can be language
French
01-25-2010 02:16 AM
Find all posts by this user Quote this message in a reply
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #5
RE: Omega Billing Build 4 Setup
There are about 10 words that must be translated, don't you think you can use it in english?...
01-25-2010 02:57 AM
Find all posts by this user Quote this message in a reply
gia777 Offline
Junior Member
*

Posts: 41
Joined: Oct 2009
Reputation: 0
Post: #6
RE: Omega Billing Build 4 Setup
Hi! Wheare you open the web page http://www.omegabill.org/ ????

Sorry for my english!
(This post was last modified: 01-31-2010 07:50 AM by gia777.)
01-31-2010 07:50 AM
Find all posts by this user Quote this message in a reply
mafia Offline
Banned

Posts: 170
Joined: May 2008
Post: #7
RE: Omega Billing Build 4 Setup
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
03-10-2010 04:43 AM
Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #8
RE: Omega Billing Build 4 Setup
(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
(This post was last modified: 03-10-2010 05:43 AM by gOOvER.)
03-10-2010 05:42 AM
Visit this user's website Find all posts by this user Quote this message in a reply
xantios Offline
Newbie
*

Posts: 7
Joined: Feb 2010
Reputation: 0
Post: #9
RE: Omega Billing Build 4 Setup
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?
03-10-2010 08:09 AM
Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #10
RE: Omega Billing Build 4 Setup
http://www.isp-control.net/forum/thread-...l#pid54259

Smile
03-10-2010 09:50 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: