Solution for the Apache2 service to stop due to a 1 (0x1) service error

  
After the installation is complete, Apache is started and the Apache2 service is stopped due to a 1 (0x1) service error. Looking at the Windows error log (Computer Management - Event Viewer) found several error messages:

The Apache service named reported the following error: >>> Unable to open logs.

The Apache service named reported the following error: >>> Warning: DocumentRoot [F:/var/www/fanjiexi] does not exist.

The Apache service named reported the following error: >> ;> no listening sockets available, shutting down.

The most critical information should be the last one, it seems that the default listening port is not available. My Apache default port is 80, it should be 80 port is occupied, killing the program used by port 80 or changing the default port of Apache can solve this problem.

Copyright © Windows knowledge All Rights Reserved