Please refer to the file ZAP_README that is included with the distribution.
ZAP can be configured and installed either as an Apache module or as a conventional CGI program. The former gives superior performance and some additional flexibility in the location of the configuration files (templates). However, the latter does not require recompilation of the Apache Server, or changes to the configuration files. We whole-heartedly recommend the Apache module option.