Forum

> > CS2D > Servers > Connect Serverstats with Website?
Forums overviewCS2D overview Servers overviewLog in to reply

English Connect Serverstats with Website?

11 replies
To the start Previous 1 Next To the start

old Re: Connect Serverstats with Website?

Nekomata
User Off Offline

Quote
It's possible if your website is being hosted from your VPS as well. Have you set up a virtual server on your VPS or do you have a seperate hosting for your website?

old Re: Connect Serverstats with Website?

Hajt
User Off Offline

Quote
@user Rygna: You have to install web server e.g. Apache2 or nginx and then type this command in your terminal to create a directory with permissions:
1
mkdir -m 777 /var/www/serverstats

And then use this command to set path for statistics cs2d cmd stats_output "/var/www/serverstats/dust2.html"

Make sure you replace the example path to root of your web server, in my case it's just /var/www/. That's it. To check if everything went well, direct your browser to your server's IP address eg. 12.34.56.789/serverstats/dust2.html

old Re: Connect Serverstats with Website?

Nekomata
User Off Offline

Quote
It's not possible then.

However there is a way to collect the data from the server directly by execution of a cron script for it, parsing it and make a custom serverstats page. That requires programming with socket libraries (which your freehost may not have enabled).

Your website is suspended by the way.
edited 1×, last 10.04.16 12:01:48 pm

old Re: Connect Serverstats with Website?

Nekomata
User Off Offline

Quote
Gayos, how do you plan to have his freehost website fetch the serverstats.html file from his VPS which is not running any server software (apache, nginx)?

old Re: Connect Serverstats with Website?

Nekomata
User Off Offline

Quote
@user Hajt, Freehosts usually don't allow these type of connections but it would be great if his did.
@user ead, Sadly that can't work unless the serverstats.html is on the same machine as the executing S:E (given that there' a valid access to it)
To the start Previous 1 Next To the start
Log in to reply Servers overviewCS2D overviewForums overview