I can not apply the settings. Ubuntu 16.04 + php7 + FreePBX 14

Sounds like you’re trying to run FreePBX 13 on PHP7. You need FreePBX 14 for that (You’ll have to manually pull it from git)