How to enable mining on daemon?
I believe you can still use the generate and generatetoaddress commands to mine a certain number of blocks. setgenerate was removed in version 0.13 because mining with bitcoin core on mainnet is useless and has been for a number of years:
https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.13.0.md#removal-of-internal-miner