eHealth Apache server will not start due to missing Listen line in httpd.conf when httpd.tpl file in use

Document ID : KB000028872
Last Modified Date : 14/02/2018
Show Technical Document Details


On eHealth or later starting the web fails with the following error

$ nhHttpd start
Starting eHealth Web Server . . .
no listening sockets available, shutting down
AH00015: Unable to open logs
Starting eHealth Tomcat Server . . .

Searching the $NH_HOME/web/httpd/httpd.conf, there is no Listen directive.

Check the httpd.tpl file for Listen directives outside of the "# Custom Protect Section" and "# End Custom Protect Section" comments

To correct this, make sure the Listen directive is between the comments:

1) Edit the $NH_HOME/web/httpd.tpl and add the Listen directive between the

"# Custom Protect Section" and # End Custom Protect Section comments.

These comments must remain intact.

Any entries between these comments are added to the httpd.conf file when it is regenerated.


# Custom Protect Section
# End Custom Protect Section

2) Regenerate the httpd.conf file as outlined in TEC1194509.