Configure your server with the following components:
OS Almalinux 8 / CentOS 7 recommended
Apache
MySQL
PHP 7.3-7.4
Laravel 8
Node.js 16
PM2
Redis
Apply SSL for the domain.
Extract/Clone this repository in the public_html folder
Enable PHP extension: Fileinfo, Imagick, Redis
Create a new email and set a password.
Create a new database and grant full access.
Import the SQL file located in /addons/db.sql directory.
Make sure that SSL is applied for the domain.
Run in the terminal in the public_html folder: installing the composer
Generate CRT, KEY and SSL PACKAGE. Copy the contents of your CRT/KEY/BUNDLE to the files in the PTWEBSOCKET/SSL/ folder. Create a new email and password.
Create a new database, grant all the accesses and import the SQL file located in /addons/db.sql folder using PHPMYADMIN.
To upload files:
// * * * * Bonus tip: As it includes demo user accounts, generate a new password hash for existing users and run the following in phpMyAdmin (replace the hash) https://bcrypt-generator.com /. If you need to hash a new word, for example, run this in phpMyAdmin:
UPDATE w_users SET password = ‘$2aa 12$ s1RpwEx / oTL3vYQGZjC33eBHECRJb7gkjmAk9Tmyefub7gQ4nh8XS’;
// This ensures that all user passwords are set to: Test123 ********///
SSL Specific Instructions
Delete the self-signed certificates.
Generate or install Lets Encrypt one if available.
Save the text file via notepad or directly as follows:
Certificate (CRT) ==> crt.CRT
Private key (KEY) > > key.key
Go to the PTWebSocket/ssl folder and replace those three files.
Edit.env and /config/app.php (URL line 65) for domain, database, user/password, email and password.
File Edits
Edit the changes in the /public/Socket file in the *json files.
Game Downloads
Currently, there are approximately 1000 games with a total of 40 GB.
Files uploaded soon.. or join our group to get it quickly.
PM2 Commands
PM2 COMMANDS https://pm2.keymetrics.io/docs/usage/quick-start/
FROM WITHIN THE COMMANDS of the PTWEBSOCKET web folder:
starting arcade pm2.js… watch the pm2 startup server.js… watch the starting slots of pm2.js… watch
Or if you tried before and did not expect errors, all in one command:
starting arcade pm2.js watch watch & & pm2 startup server.js watch clock & home slots pm2.js… watch
EXAMPLES OF USEFUL COMMANDS
pm2 stop all pm2 delete all pm2 empty pm2 records
All the activated commands https://pm2.keymetrics.io/docs/usage/quick-start/
An additional tool called wscat can be used (install via SSH):
wscat-c “wss: / / domain: PORT / slots”
Example to make sure to connect.
Open ports in Firewall: 22154, 22188, 22197 (or whatever you configure in the ports of your socket file).
Run the site – It should work now if everything was set up correctly.
Problem Solving
Minor troubleshooting if your composer/craftsman did not run properly:
php artisan cache: delete & & php artisan view: delete & & php artisan settings: delete & & php
craft event: claro and php craft route: claro
Leave a Reply