1. Home
  2. Docs
  3. General
  4. Installation

Installation

Upload all files and product license to the directory of your choice. Your license can be generated and downloaded from your client account at http://www.onlinepokerscript.com

SELF INSTALLER

  1. CHMOD includes/config.php to 777
  2. Run Installer
  3. CHMOD includes/config.php to 644
  4. CHMOD avatars directory to 777.

If you have problems with the installer you can manually install (see below).

MANUAL INSTALLATION

  1. Insert data from poker.sql into your db.
  2. Edit includes/config.php to add your db connection info and administrator username
  3. CHMOD includes/config.php to 644
  4. CHMOD avatars directory to 777.

Note: After installation, please make sure to remove the install folder.

To install and use the websocket version of Online Poker Script, follow the additional guide below:

=== REQUIREMENTS ===
1. Supervisor

=== How To ===

1. Create a supervisor configuration file with the following content. Note: This is just a template. The information will vary from system to system. For example, the location of php file.

[supervisord]
logfile=/home/%CPANEL_USERNAME%/%DOMAIN.com%/sv.log
pidfile=/home/%CPANEL_USERNAME%/%DOMAIN.com%/pid.log

[program:ops-ws]
command= bash -c “ulimit -n 10000; exec /opt/cpanel/ea-php81/root/usr/bin/php /home/%CPANEL_USERNAME%/%DOMAIN.com%/server.php”
autostart=true
autorestart=true
stderr_logfile=/home/%CPANEL_USERNAME%/%DOMAIN.com%/ws.err.log
stdout_logfile=/home/%CPANEL_USERNAME%/%DOMAIN.com%/ws.out.log

2. Save the file as ‘ops-ws.conf’ or ‘ops-ws.ini’. The extension depends on how Supervisor was configured. If you are not sure, you can check the other configuration files in the same folder.

3. The folder to save the file can vary from system to system but most probably it is in ‘/etc/supervisor/conf.d/’. But please make sure that the file is saved in the same folder where other supervisor configuration files are saved.

4. After saving, run the following commands:

supervisor reread
supervisor update

5. After that, run “supervisorctl” and see if the program “ops-ws” is running. If not, run “start ops-ws” to start the program.

6. Go to cPanel and create a cron job of ‘Once per hour’ with the following command:

supervisorctl restart ops-ws

Make sure your cPanel user has enough permission to control supervisor. If not, you need to grant the user permission to do so.

7. Create a virtual host config file named “proxy_pass.conf” with the following content. Note: This is just a template. The information will vary from system to system.

#Apache Reverse Proxy
SSLProxyEngine on

ProxyPass /.well-known !
ProxyPass /ws ws://domain.com:3000
ProxyPassReverse /ws ws://domain.com:3000

# Replace domain.com with your domain name and 3000 with your port number. If you have not opened a port, please do so in your Firewall settings

# The location of the virtual host config file is usually in “/etc/apache2/conf.d/userdata/ssl/2_4/%CPANEL_USER%/%DOMAIN.com%” but it may vary. If you cannot find it, please talk to your hosting provider.

8. Restart Apache

9. Done. Login as admin on your OPS website, go to Settings and configure the websocket server address and port and select “Use Websocket”.

10. You do not need to run the websocket server manually (php server.php command). It will be automatically started by Supervisor and will be restarted if it crashes. So if you have started it manually, please stop it otherwise it can cause problems.

How can we help?