Taker Casino Script (Full Version) 2026


About the Script:
A ready-made roulette gaming script with a responsive design. Laravel 7 + Vue.js, clean code, two themes – light and dark. Quick launch, easy setup.

 

Instructions are in the root of the install.md file.
Responsive (mobile, tablet, PC). Light and dark themes.
Requirements: PHP 7.4+, MySQL 5.7+, Node.js 14+, Composer
Laavel 7 + Vue.js 2 + Node.js

Slots – integration with aggregators. Providers: NetEnt, Pragmatic Play, Play'n GO, Red Tiger, Relax Gaming, Amatic, and many others!
Live Roulette — Ezugi, Vivo, TVBET
Mines — Minesweeper with a choice of mines and multipliers
Dice — Dice with adjustable odds
Wheel — Wheel of Fortune
Plinko — Ball through a pyramid
Bubbles — Pop bubbles

 

# TAKER Installation Instructions

## Server Requirements

- Ubuntu 20.04+ / Debian 11+
- PHP 7.4+ with extensions: mbstring, xml, curl, mysql, zip, gd
- MySQL 5.7+ or MariaDB 10.3+
- Node.js 14+
- Composer
- Nginx
- PM2 (for Node.js processes)
- SSL certificate (Let's Encrypt)

---

## 1. Preparing the Server

```bash
# System update
apt update && apt upgrade -y

# Install PHP and extensions
apt install php7.4-fpm php7.4-mysql php7.4-mbstring php7.4-xml php7.4-curl php7.4-zip php7.4-gd -y

# Install MySQL
apt install mysql-server -y

# Install Nginx
apt install nginx -y

# Install Node.js
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
apt install nodejs -y

# Install PM2
npm install -g pm2

# Install Composer
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
```

---

## 2. Uploading Files

```bash
# Create a Directory
mkdir -p /var/www/your-domain.com
cd /var/www/your-domain.com

# Upload Project Files via SFTP or Git
# Set Permissions
chown -R www-dаta:www-data /var/www/your-domain.com
chmod -R 755 /var/www/your-domain.com
chmod -R 775 storage bootstrap/cache
```

---

## 3. Database Setup

```bash
mysql -u root -p
```

```sql
CREATE DATABASE taker CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'taker'@'localhost' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON taker.* TO 'taker'@'localhost';
FLUSH PRIVILEGES;
EXIT;
```

Import the database dump:
```bash
mysql -u taker -p taker < database.sql
```

---

## 4. Configuring .env

Copy and edit the configuration file:

```bash
cp .env.example .env
nano .env
```

### Basic settings:

```env
APP_NAME=TAKER
APP_ENV=production
APP_DEBUG=false
APP_URL=https://your-domain.com

APP_HTTPS=true
SSL_KEY_PATH='/etc/letsencrypt/live/your-domain.com/privkey.pem'
SSL_CERT_PATH='/etc/letsencrypt/live/your-domain.com/fullchain.pem'
```

### Database dаta:

```env
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=taker
DB_USERNAME=taker
DB_PASSWORD=your_password
```


```env
VKONTAKTE_CLIENT_ID=your_app_id
VKONTAKTE_CLIENT_SECRET=your_secret_key
VKONTAKTE_SERVICE_KEY=your_service_key
VKONTAKTE_REDIRECT_URI=https://your-domain.com/auth/vk/callback
```

### Telegram Bot:

1. Create a bot via @BotFather
2. Get Token

```env
TELEGRAM_TOKEN=123456789:ABCdefGHIjklMNOpqrsTUVwxyz
TELEGRAM_WEBHOOK_SECRET=random_string_for_security
TELEGRAM_ADMIN_IDS=your_telegram_id
TELEGRAM_CHANNEL_ID=@your_channel
TELEGRAM_MIN_DEPOSIT_NOTIFY=5000
```

---

## 5. Installing Dependencies

```bash
cd /var/www/your-domain.com

# PHP Dependencies
composer install --no-dev --optimize-autoloader

# Generating an Application Key
php artisan key:generate

# Clearing the Cache
php artisan config:clear
php artisan cache:clear
php artisan view:clear

# Node.js Dependencies
npm install --legacy-peer-deps

# Building the Frontend (Production)
npm run prod
```

---

## 6. Configuring Nginx

Create the configuration file:

```bash
nano /etc/nginx/sites-available/your-domain.com
```

```nginx
server {
    listen 80;
    server_name your-domain.com www.your-domain.com;
    return 301 https://$server_name$request_uri;
}

server {
    listen 443 ssl http2;
    server_name your-domain.com www.your-domain.com;

    root /var/www/your-domain.com/public;
    index index.php;

    ssl_certificate /etc/letsencrypt/live/your-domain.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/your-domain.com/privkey.pem;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
        fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
        include fastcgi_params;
    }

    location ~ /\.(?!well-known).* {
        deny all;
    }
}
```

Activate the config:

```bash
ln -s /etc/nginx/sites-available/your-domain.com /etc/nginx/sites-enabled/
nginx -t
systemctl restart nginx
```

---

## 7. SSL Certificate (Let's Encrypt)

```bash
apt install certbot python3-certbot-nginx -y
certbot --nginx -d your-domain.com -d www.your-domain.com
```

---

## 8. PM2 Configuration

Edit `ecosystem.config.js` and replace the paths with your domain:

```bash
nano ecosystem.config.js
```

```jаvascript
module.exports = {
  apps: [
    {
      name: 'taker-server',
      script: './server/app.js',
      cwd: '/var/www/your-domain.com',
      instances: 1,
      autorestart: true,
      watch: false,
      max_memory_restart: '1G',
      env: {
        NODE_ENV: 'production'
      }
    },
    {
      name: 'taker-telegram',
      script: './server/telegram.js',
      cwd: '/var/www/your-domain.com',
      instances: 1,
      autorestart: true,
      watch: false,
      max_memory_restart: '500M',
      env: {
        NODE_ENV: 'production'
      }
    }
  ]
};
```

Launching PM2:

```bash
cd /var/www/your-domain.com
pm2 start ecosystem.config.js
pm2 save
pm2 startup
```

Useful PM2 commands:
```bash
pm2 list # List of processes
pm2 logs # Logs of all processes
pm2 restart all # Restart all
pm2 stop all # Stop all
```

---

## 9. Setting up Telegram Webhook

After launching PM2, set up the webhook:

```
https://your-domain.com/telegram/set-webhook
```

Checking the webhook:
```
https://your-domain.com/telegram/webhook-info
```

---

## 10. Slot Settings

In the admin panel (`/admin`), in the "Settings" section, specify:

- **TBS Provider ID** and **TBS Provider Secret** — obtain from the TBS aggregator
- **B2B Provider ID** — obtain from the B2B aggregator

---

## 11. First Login

1. Open the website
2. Log in via
3. Set up admin rights in the database:

```sql
UPDATE users SET is_admin = 1 WHERE id = 1;
```

4. The admin panel is available at: `https://your-domain.com/admin`

---

## Potential Problems

### Error 500
```bash
chmod -R 775 storage bootstrap/cache
chown -R www-dаta:www-data storage bootstrap/cache
php artisan config:clear
```



### Telegram bot not working
- Check the token in `.env`
- Check that the PM2 process `taker-telegram` is running: `pm2 list`
- Check the logs: `pm2 logs taker-telegram`

### Slots aren't loading
- Check your provider settings in the admin panel
- Make sure the PM2 'taker-server' process is running

Go back
6-02-2026, 09:06