XBETS365 system overview.
1. Setup and installation. For a fresh installation simply upload the
files in root folder (code.zip) and extract on your server.
2. Go to app/config/database.php and enter your database credentials
3. Import the database
This is the installation process and this part is now done.
But still, there are some parts left.
4. go to: app / confic / core.php
line 36
if (isset($_SERVER['SERVER_NAME'])) {
if (strpos($_SERVER['SERVER_NAME'], '.dev') !== false) {
error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);
Configure::write('debug', 2);
} else {
ini_set('error_reporting', 0);
error_reporting(0);
Configure::write('debug', 0);
}
} else {
Configure::write('debug', 0);
}
change error reporting, debug and write debug from 0 to 1 and save.
(ONCE FULLY INSTALLED CHANGE IT BACK)
Cron jobs to display integrated odds feed.
1. In order to get the odds feed to properly display on the website you
need to add cronjobs, the cron´s must be here for the odds to work and
you can add more crons and tweak this around as you need depending on the
odds / matches and sports you want to target. To set our default demo
cron jobs for the odds to display as the website demo please use below
settings.
Cron job 1: Minute * Hour * Day * Month * Weekday * command: sleep
15; php /home/yourdomain.com/public_html/app/console/cake.php -app
/home/yourdomain/public_html/appFeeds.Betclick live
This is for the betclick demo live feed, aka live odds. Replace
yourdomain with your domain url and please note the paths may be
different demepnding of the setup of your system.
Cron job 2: Minute 30 Hour * Day * Month * Weekday * php
/home/yourdomain/public_html/app/console/cake.php -app
/home/yourdomain/public_html/app/ Cron30Min execute
This is for the pre match odds Betclick demo feed.
2. You MUST install REDIS on your server in order for the casino games to
work properly. If you don’t know how to do this, please contact your
server provider.
Email settings for account verifications and notifications
You need to add email setting on order for the email to be sent out for
payer account creations, verifications and things like that and you do
these settings in app/config/email.php
Please note, its very important you get the settings right here as the
system is sensitive. For example: if you add a outlook email or gmail
email address and put the credentials here, there are cases when the
emails do not send out properly anyway, meaning players do not receive
these when signing up, this is not a system error, you need to make sure
your email provider accepts unsecure app allowance (depending if you are
using SSL) or any other layer.
Website backoffice login:
By default your login to the c-panel is:
www.yourdomain.com/admin
Login credentials initially is
Username: admin1
password: admin1
From here you manage all settings related to players, odds, casino
settings and so on.
Second admin login to the ACL
First of all, make sure you are already logged in as an admin as
mentioned above then visit
yourdomain.com/eng/admin/acl/aros/ajax_role_permissions
From here you can enable and disable features, select what to be
accessible from the website and not so you can for example shut down any
casino game one by one or them all, disable and activate menu links,
payment gateways and much more. Before you “play around” make sure you
take notes of what you are changing or make an backup of the system
including database.
Bitcoin payment gateway Go to app/plugin/payments/config
here you will find the various payment options to choose from For example
if you want to activate your bitcoin payment gateway to the system you
simply open the blockchain.php file
Line 10 to 15
'submit_url' => '',
"api_key" => "7ce0258c-5f24-4525-b29d-
823afea34585",
'test' => false,
'blockchain_root' => 'https://blockchain.info/',
'secret' => null,
'xpub' =>
'xpub6D8PXB3FLvPkzKi8a1ErPPWyIUHMUHmugngFBUY77n69879797iFJYKQdbirtHMFBo1S
PUiyX LQkxwmPzcMbKMiW'
Now go to blockchain.com and login or signup for a merchant account, and
grab your own api key and xpub code and replace in this file, save and
upload and now the bitcoin payments will arrive directly into your wallet
for every deposit.
CoinPayments gateway
This one is similar, coinpayments offers over 1000 different crypto
currencies and you can start accepting multiple ones or just the one you
want in a couple minutes:
open CoinPayments.php
Line 10-13
'merchant_id' => '0ef59df961sdsde43r4t654ddccba3',
'ipn_secret' => 'test123',
'public_key' =>
'50eaad9248d549be74e6a1af5ea7893798374m3924853fa53e654922c',
'private_key' =>
'FA57A465c6D76C767635894e1b0874681E1nj3h43m4h3m4h3c416861C',
Signup or login to coinpayments.net create an merchant account and simply
find and replace these following credentials mention in line 10 to 13,
merchant id, public key and private key. Save and upload, now you should
be able to receive payments through coinpayments.
The basics are the same for all the other different payment gateways.
Following payment gateways:
* Paypal – you need to request a merchangt paypal pai, secret and key *
Skrill – You need to request API secret and key * NovinPal – You need to
request API secret and key
______________________________________________________________
The script requires php 5.6
PDO enabled
REDIS install
Se below
Install php 5.6 in terminal
yum install ea-php56
______________________________________________________________
How to enable PDO in WHM/cPanel Print
Created by: Mark Guest
Modified on: Sat, 24 Nov, 2018 at 10:39 PM
How to enable PDO in WHM/cPanel
This guide shows you how to enable the PDO module within cPanel/WHM using
Easy Apache.
1. Log in to WHM ( https://yourIPaddress:2087)
2. Go to WHM »Software »EasyApache (Apache Update)
3. Select "Previously Saved Config (** DEFAULT **)" and click "Start
customizing based on profile"
4. On the "Apache Version" page click "Next"
5. On the "PHP Version" page click "Next"
6. On the "Short Options List" page click"Exhaustive Options List"
7. On the "Exhaustive Options List" ensure that PDO, PDO sqlite and PDO
MySQL are selected.
8. Then Click save & Build on the bottom of the page.
______________________________________________________________
install REDIS
Installing Redis on CentOS 7
Redis package is not included in the default CentOS repositories. We will
be installing Redis version 5.0.2 from the Remi repository.
The installation is pretty straightforward, just follow the steps below:
Start by enabling the Remi repository by running the following commands
in your SSH terminal:
sudo yum install epel-release yum-utils
sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum-config-manager --enable remi
Install the Redis package by typing:
sudo yum install redis
Once the installation is completed, start the Redis service and enable it
to start automatically on boot with:
sudo systemctl start redis
sudo systemctl enable redis
______________________________________________________________
Install MySql drivers
Download and add the repository, then update.
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum update
Install MySQL as usual and start the service. During installation, you
will be asked if you want to accept the results from the .rpm file’s
GPG verification. If no error or mismatch occurs, enter y.
sudo yum install mysql-server
sudo systemctl start mysqld
MySQL will bind to localhost (127.0.0.1) by default.
yum install ea-php70-php-mysqlnd
______________________________________________________________
enable cron on server by
enable the curl on the server
enable the PDO and for PHP version enabled on the server
To Enable cURL Using EasyApache on WHM:
1. Log in to WHM as the 'root' user.
2. Either search for "EasyApache" or go to Software > EasyApache
3. Scroll down and select a build option (Previously Saved Config)
4. Click Start "Start customizing based on profile"
5. Select the version of Apache and click "Next Step".
6. Select the version of PHP and click "Next Step".
7. Chose additional options within the "Short Options List"
8. Click Exhaustive Options List.
9. Find and select the option for cURL.
10. Click curl, and then click Save and build.
software - easyapache - PHP extensions - php56 curl - activate this one
To install cURL on command line:
CentOS Linux server
yum install curl
______________________________________________________________
After all theese steps, make sure you have installed php 5.6 and that
everything is updated and you restart your server.
Common issues if the websiute is not showing:
1* HTACCES file issues
2* You did not install this properly or missconfigured server
If you still have issues we can install it for free,
just send me an email with your envato purchase code and server
credentials and we will install it for free.
[email protected]