DLib Mod always needs to be installed wherever the mods that depend on it are installed. Those mods are combat projects such as Lifesteal and PVP Essentials. DLib has no setup of its own, so placing it is the only thing you need to get right.
Single player
1. Open your game folder and go into the mods folder.
2. Place DLib in the same folder as Lifesteal or PVP Essentials.
3. Launch the game. DLib will work in the background with no further action from you.
Playing on a server
Combat mods like Lifesteal usually affect gameplay on the server, so the server needs them installed.
1. On the server, put DLib in the server's mods folder next to the combat mod that uses it.
2. Check whether the combat mod also has to be installed on each player's game. You can find this in the mod's own requirements or in the server's instructions.
3. If players need the combat mod on their own game, they also need DLib in their own mods folder.
4. Restart the server after adding or removing either mod.
Quick rule
Wherever Lifesteal or PVP Essentials goes, DLib goes too. If a combat mod is on both the server and the players' games, put DLib in both places. Because DLib does not change vanilla blocks, adding it to an existing server world won't alter the map.