Requirements
It doesn't take much to start using STB, but you should be aware of the number of simultaneous users, and the peak times. For now, we’ll focus on basic installation, and later on we’ll give you tips for scaling to larger servers.
How many users can such a server serve?
Server 1
- Processor: 1 core
- Memory: 3 GB RAM
- Storage: 40 GB
- Transfer; Unlimited
The average use of RAM memory for each connection is 20 mb. That is, for each user the server needs 20 mb. Giving a margin of 1 gb for the other necessary services, which we will talk about later, we have 2 gb for our HTTP server. With our remaining 2 gb (2048 mb) we can serve: 2048/20 = 102 customers Simultaneously with a good safety margin.
The transfer should preferably be unlimited, because when a user logs in, the media list will be downloaded, converted, and served to the user. A list of 3mb is downloaded from the server and then sent to the user for a total of 6mb of transfer. Other transfers are also performed by the server such as EPGs and Synopses. I think you already understand how far this goes.
The content of the streaming / video itself does not pass through the server, only the lists.
Basic installation.
We need 3 services for everything to work, and they are:
- 1 HTTP server (Apache or Nginx)
- 1 database (MySQL)
- 1 DNS server (bind9)
PHP and extensions like curl and mysql are also needed, for the apache server you must enable the rewrite module to make use of .htaccess
settings
You must edit the index.php file in the api folder with database information (you don't need to create the tables, just create a database and a user with basic permissions)
In the same file in the api folder, you must add a primary server and alternate ones.
You must edit the * .db files in the BIND folder and then copy them to the bind configuration folder.
Customizations
These must be done manually in the css files
(0 time(s) working and 0 time(s) not-working in total)