Unable to start Apache

<p><span style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><span style="font-size: small;"><span style="color: #000000;">As a part of one assignment&nbsp;in course Internet Security I had to install <span style="mso-spacerun: yes;">&nbsp;</span>and use Apache server. After installation, I started it by selecting the option Start from start menu but error occured. Following message appeared:</span></span></span></p><p><span style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><span style="font-size: small;"></span></span></p><p><span style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><span style="font-size: small;"><span style="color: #000000;"><em>Address already in use: make_sock: could not bind to address [::]:80<br />no listening sockets available, shutting down<br />Unable to open logs</em></span></span></span></p><p><span style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><span style="font-size: small;"></span></span></p><p><span style="font-family: &quot;Cambria&quot;,&quot;serif&quot;; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><span style="font-size: small;"><span style="color: #000000;">After a lot of research on the Internet, finally I discovered possible solution.</span></span></span></p>
1 answer

Solution for problems with starting Apache

First has to be checked if some other daemon is bound to 80 port by using:nmap machinname which provides the active ports that are used - port 80 should be checked. If some other process is using the port 80 kill the process.

  • Most probably, Apache that comes with RH8 is already running whichcould be stopped by /etc/rc.d/init.d/httpd stop.
  • Also ErrorLog and CustomLog have to be checked in httpd.conf.to see if the log files exist and have correct permissions.

Taggings: