# 1Stake iGaming Platform

## System requirements

- PHP 8.2 or higher
- PHP extensions: cURL, Mbstring, OpenSSL, PDO, Tokenizer, XML, Ctype, JSON, BCMath, Zip
- URL rewrite enabled.
- PHP function set_time_limit() enabled
- The application should be installed in the web root folder of a domain or subdomain (it will not work if installed in a sub folder).

## Installation

##

### Step 1

Download the application zip package from CodeCanyon and log in to cPanel (or other control panel).

### Step 2

Open File Manager, upload the downloaded zip package to public_html folder (web root folder of your domain or subdomain), right click on the archive and choose Extract.

#### Important

Please ensure that Show hidden files option is enabled before you extract the files (File Manager » Settings):

### Step 3

Open MySQL Databases page, create a new MySQL database, create a new user and add the user to the database selecting All privileges like this:

### Step 4

Run the application installation script by accessing the following URL in a web browser: http://mywebsite.com/install.php (substitute mywebsite.com with your actual domain name). Follow the on-screen setup instructions to complete the installation.

### Step 5

Open Cron Jobs page and add a new cron (scheduled) job to your server. The cron job parameters are provided after successful installation of the application and on the Backend » Maintenance page.

In cPanel the cron job should look like this:

In Plesk the cron job should look like this:

### Step 6

Create an email account on your server that will be used to send emails. In cPanel go to Email Accounts » Create and fill in the required fields.

After the account is created click Connect devices and copy the SMTP server settings, specifically Username, Password, Outgoing server and Port. It's recommended to use the Secure SSL/TLS settings.

Log in as admin to the platform and go to Backend » Settings » Email » SMTP. Enter the credentials of the SMTP server that will deliver emails sent by the application.

You can test if emails are sent successfully by going to Backend » Maintenance and under Tasks selecting Send test email.

##

### Step 1

Install and configure a LAMP stack (Linux, Apache, MySQL, PHP). If your server comes with Ubuntu OS you can use this guide, for other operating systems find the corresponding manual.

#### Important

Make sure that URL rewrite is enabled. You can do it by running the following command:

`a2enmod rewrite`

Also make sure that .htaccess files are allowed (AllowOverride directive is set to All) either globally or in the virtual host config file. To enable it on the virtual host level add the following block to the virtual host config file (/etc/apache2/sites-enabled/mywebsite.conf):

    <VirtualHost *:80>
      ServerName mywebsite.com
      ServerAdmin info@mywebsite.com
      DocumentRoot /var/www/mywebsite.com
      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined

      <Directory /var/www/mywebsite.com/>
        Options FollowSymLinks MultiViews
        AllowOverride All
        Require all granted
        Order allow,deny
        allow from all
      </Directory>
    </VirtualHost>

Please note that you need to restart the Apache service after making configuration changes.

#### Nginx web server

If you are deploying your application to a server that is running Nginx web server, please read this guide.

### Step 2

Create a new MySQL database, create a new user and add the user to the database. You can do so by logging in to MySQL as root and running the following commands:

``CREATE DATABASE casino CHARACTER SET utf8 COLLATE utf8_general_ci;` `CREATE USER 'casino'@'localhost' IDENTIFIED BY 'password123';` `GRANT ALL PRIVILEGES ON casino.* TO 'casino'@'localhost';``

### Step 3

Download the application zip package from CodeCanyon, upload it to the web root folder of your domain or subdomain and unzip.

#### Important

Make sure that the user your web server is running under (usually www-data) has read and write access to the application files and folders. The easiest way to set it up is to make the www-data user owner of the application files and folders recursively. It can be done as follows (assuming /var/www/mywebsite.com is the web root folder):

``cd /var/www` `chown -R www-data mywebsite.com``

### Step 4

Run the application installation script by accessing the following URL in a web browser: http://mywebsite.com/install.php (substitute mywebsite.com with your actual domain name). Follow the on-screen setup instructions to complete the installation.

### Step 5

Add a new cron (scheduled) job to your server. The cron job parameters are provided after successful installation of the application and on the Backend » Maintenance page. The cron job can be added by executing `crontab -e` and pasting the command.

#### Important

It is not recommended to add and execute the cron job as root, otherwise when logging is enabled in the application settings the log files will be owned by the root user, which in turn will trigger a 500 server error due to lack of permissions.

### Step 6

Log in as admin and go to Backend » Settings » Email » Driver. Enter the credentials of the SMTP server that will deliver emails sent by the application.

## Frequently Asked Questions

#### I get "404 Not Found" error during installation

This error occurs if:

- .htaccess files are missing
- .htaccess files are not allowed (AllowOverride directive is set to None)
- Apache Rewrite module is not enabled

Please follow the installation steps again.

#### I get "406 Not Acceptable" error during installation

This error occurs if a request has been blocked by Mod Security Apache module. Please contact your hosting support and ask them to disable Mod Security module.

## Extra game add-ons

- American Roulette
- Blackjack
- Caribbean Poker
- Casino Hold'em
- Crash
- Crypto Prediction
- Dice
- Dice 3D
- European Roulette
- Heads or Tails
- Horse Racing
- Keno
- Lucky Wheel
- Multiplayer Blackjack
- Multiplayer Roulette
- Plinko
- Raffle / Lottery
- Sic bo
- Slots
- Slots 3D
- Video Poker

## How to get support?

Please note that support is only available during the application support period. Your purchase includes 6 months of free support. If you require assistance beyond this period, you will need to renew your support plan. How to renew the support service?

For technical support, please submit a new ticket at https://1stake.atlassian.net/servicedesk. If you encounter an application or server error, please follow these steps before submitting a ticket:

- Enable Debug mode (Backend » Settings » Logging)1
- Repeat the error
- Make a screenshot of the error
- Check the browser console and make a screenshot if there are any errors
- Provide the above information along with the application error log (can be found in storage/logs folder)
- Provide steps to reproduce the error

1 — If you don't have access to backend please edit .env configuration file (located in the web root folder of your domain) and set the following variables:

    APP_DEBUG=true
    LOG_LEVEL=debug

In case the issue is difficult to trace our support team can request SSH / cPanel access to your server and / or website admin access.

© 1stake.app | Help center