First to your error: sites_web_domain_update needs 4 parameters! Third parameter is the domain_id, fourth parameter then the $params array....
@sjau: In #17 you did not give a parameter, therefore you get the "Undefined offset: 1 in /root/letsencrypt.php on line 25" at the very beginning....
@till The problem with config templates is that you will not profit from new features or even security fixes that involve modifications in the...
Separate names with a comma.