WIN5X roulette script, aka PLAY2X, with 12 games. Of the payment cards there are PAYEER, qiwi, etc.
By games: mines, keno, stairs, tower, wheel, roulette, hilo, blackjack, dice, crash, coinflip
Installed on Ubuntu 18.04
apt-get update
apt-get -y install software-properties-common
add-apt-repository ppa:phpmyadmin/ppa
add-apt-repository ppa:eek:ndrej/php
apt-get --with-new-pkgs upgrade
apt-get install -y php7.4 php7.4-bcmath php7.4-ctype php7.4-fileinfo php7.4-json php7.4-mbstring php7.4-pdo php7.4-xml php7.4-tokenizer
apt-get install -y composer apache2 mysql-server
sudo mysql_secure_installation
mysql -u root
USE mysql;
UPDATE user SET authentication_string=PASSWORD("g12J21q1MxXN") WHERE User='root';
UPDATE user SET plugin="mysql_native_password" WHERE User='root';
FLUSH PRIVILEGES;
quit
apt-get install -y phpmyadmin
The phpMyAdmin installer will ask for mysql data and where to install it. At the server selection stage, you need to select Apache by checking the box (space).
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
npm i -g pm2
sudo apt-get install unzip
cd /var/www/html
unzip 1.zip
Then go to /usr/share/phpmyadmin
and change the file name config.simple.inc.php on config.inc.php
We go to the website http://www.passwordtool.hu/blowfish-password-hash-generator
Copy the blowfish, and paste it into the file config.inc.php in the field $cfg['blowfish_secret'] = ";
Important: now you need to configure the Apache server for Laravel:
nano /etc/apache2/sites-available/000-default.conf
Changing DocumentRoot /var/www/html to DocumentRoot/var/www/html/public
After DocumentRoot we write the following
<directory var="" www="" html="" public="">
Options -Indexes +FollowSymLinks
Allow from all
Require all granted
AllowOverride All
</directory>
a2enmod rewrite
service apache2 restart
Go to the website / phpmyadmin with root data and create a database.
Upload the database file there in the script .
We drive the data from the database into the evn file and save it.
In the file, change APP_DEBUG to false, APP_URL to the site address..
DB_DATABASE to the database name
DB_USERNAME on root (default) or other username if it was created
DB_PASSWORD to the database password
, after which we execute the command:
chmod -R 777 /var/www/html/storage
chmod -R 777 /var/www/html/bootstrap
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
----------------------------------------------------------------------------------
NPM installation, as well as pm2 required for operation:
apt-get install npm
npm install --save -g pm2
npm install --save -g cors easyvk express http xss-filters crypto mathjs socket.js
npm install --save -g fs
The file in the main page of the script responsible for the promo bot is promo_bot.js
The last domain needs to be changed to the site address:
domain = __LOCALHOST ? 'http://localhost' : 'http://win5x.com';
The file in the main page of the script responsible for starting the chat - chat.js
The last domain needs to be changed to the site address:
domain = __LOCALHOST ? 'http://localhost' : 'http://win5x.com';
Running scripts:
cd/var/www/html
pm2 start chat.js
pm2 start promo_bot.js
pm2 start -f chat.js
pm2 delete all
----------------------------------------------------------------------------------
Admin panel output in the database , in the users table
In the is_admin line by 1 and put chat_role by 3
All chat_role IDs
0 - user
1 - youtube (disabled promotion)
2 - moderator (in the admin area has access to the creation of promo codes)
3 - administrator (full access)
After the issue, the admin panel will be available at http://сайт/admin