I’ve decided to install a Counter Strike 1.6 Dedicated Server for the old times sake, and I’ve realized that a lot of the stuff available in the past is no more… Part of this because of the migration to CS:GO and part because the developers lost their interest or got married 🙂

So in this article I will try to present, step by step and up to date, how to:

For this example I’ve used a Debian 8.0 Jessie amd64 installation. First thing what we need to do it’s to add “contrib” and “non-free” to apt sources list. In the file “/etc/apt/sources.list“, on every line you find:

...../debian/ jessie main

add “contrib non-free” and make it look like this:

...../debian/ jessie main contrib non-free

save the file and run:

apt-get update
apt-get upgrade

Get rid of “dash“:

dpkg-reconfigure dash

Now we are up to date, enable multiarch (only if you have an amd64 distribution like mine, if you are on i386 skip this step):

It’s recommended that you add a new user for the server environment and run the server as that user:

adduser --disabled-password --disabled-login steam
su - steam

In the “steam” user directory create a folder, “server” for example, and download the script from “Game Server Managers_” (we are using this because it provides easy Install/Update/Monitor sollution for SteamCMD):

edit “~/server/serverfiles/cstrike/addons/amxmodx/configs/plugins.ini” (if you don’t want MySQL based admin table, skip this step and just add your admin users to “~/server/serverfiles/cstrike/addons/amxmodx/configs/users.ini” following the examples in that file or from HERE):

If you have a separate Web Server you can upload “web” folder to the “stats/” folder in your web server and you will access it through “http://web.server.tld/stats”. Just give MySQL access to “hlstatsx” database to the Web Server also.

Edit “config.php” in the web folder (“/var/www/html” or stats folder from your web server) and also add database information:

// DB_ADDR - If web interface is on other server here give the ip of the MySQL DB
define("DB_ADDR", "localhost");
// DB_USER - The username to connect to the database as
define("DB_USER", "hlstats_user");
// DB_PASS - The password for DB_USER
define("DB_PASS", "yours3cret");
// DB_NAME - The name of the database
define("DB_NAME", "hlstatsx");
// DB_TYPE - The database server type. Only "mysql" is supported currently
define("DB_TYPE", "mysql");