Added an option to configure the hostname manually. And there was a problem when APC wasn't present.