Check which Apache user to be use.
Updated virtualhost template to be compatible with Apache 2.4+.