Hi,
you are running from cgi-bin, this is the intended location of the webserver. You need to run the other instance as ./dgate -v -r.
The other errors relate to a manual file and the web interface (apache with cgi enabled needs to be installed to support that). These are not essential for server operation.
Marcel