Cannot start HTTP or HTTPS services on Mac OS

Issue encountered

After installing Kerio Connect on Mac OS, the HTTPHypertext Transfer Protocol - A protocol for exchange of hypertext documents in HTML. and HTTPSSecure version of secured by SSL. services may not start because the ports 80 and 443 are already in use by another process.

Solution

Yosemite and El Capitan

Edit the apache configuration file:

/Library/Server/Web/Config/Proxy/apache_serviceproxy.conf

If you look in /Library/Server/Web/Config/Proxy/apache_serviceproxy.conf you'll see apache httpd configured to listen on various ports: 80, 443, 8008, 8800, 8843.

Remove or comment out the following lines:

listen 80

listen 443

listen 8800

listen 8843

You can also change port numbers in Kerio Connect administration to resolve port conflicts if required.

NOTE

We recommend to restart the Kerio Connect server.

Mountain Lion through Mavericks

The following command will properly disable the built-in Apache web service:

sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist

After the service is properly disabled, the 80 and 443 sockets are then available, and you can successfully start the HTTP and HTTPS services in Kerio Connect.

NOTE

We recommend to restart the Kerio Connect server.