This documentation always describes the latest published version. For older versions, see the CHANGELOG.
# Clone repository and checkout latest version
git clone https://github.com/markus-michalski/server-tools-v2.git
cd server-tools-v2
git checkout "$(git tag -l 'v*' | sort -V | tail -1)"
# Install as root
sudo ./bin/server-tools install
The install command:
/etc/server-tools/ with default config (permissions 600)/root/db-credentials/ (umask 077)/root/server-tools-backups/ (chmod 700)/usr/local/lib/server-tools//usr/local/bin/server-tools (chmod 700)st and servertools.version marker (git tag or commit hash), so --version reports the real version after install instead of a placeholder# Clone repository
git clone https://github.com/markus-michalski/server-tools-v2.git
cd server-tools-v2
# Run directly (auto-detects local libs)
sudo ./bin/server-tools
sudo make install
make install and ./bin/server-tools install run the exact same code — there is only one installer, not two independently maintained implementations.
After installation, the tool is accessible via three commands:
server-tools,st(shorthand) andservertools.
cd server-tools-v2
git fetch --tags
git checkout "$(git tag -l 'v*' | sort -V | tail -1)"
sudo ./bin/server-tools install
install is idempotent — running it again on an existing installation doesn't fail, and overwrites the binary, libraries and shortcuts with the current state. Config, credentials and backups are left untouched.
sudo server-tools uninstall
# or, equivalently:
sudo make uninstall
Removes:
/usr/local/bin/server-tools)st and servertools shortcuts/usr/local/lib/server-tools/)Left in place:
/etc/server-tools/config)/root/db-credentials/)/root/server-tools-backups/)/var/log/server-tools-audit.log)Uninstalling only removes the tool itself, not the data it manages. Databases, VHosts and SSL certificates remain intact and must be removed separately if needed.
uninstall only ever deletes paths that are recognizably part of a Server Tools installation, and only removes the shortcuts if they still point at its own binary — an accidentally overwritten path or an unrelated program named st is left alone.
# Edit config file
sudo nano /etc/server-tools/config
# Create MySQL root credentials (only needed if using database management)
sudo nano /root/.my.cnf
Contents of /root/.my.cnf:
[client]
password=your_mysql_root_password
# Set permissions
sudo chmod 600 /root/.my.cnf
The complete list of configuration variables is on the Configuration subpage.