Unable to start the apache web server

Hi All,

I'm getting this below error

bash-4.1$ ./apachectl -k start
(98)Address already in use: make_sock: could not bind to address hostname:18000
no listening sockets available, shutting down
Unable to open logs

I tried to change the port number, still same error:

bash-4.1$ ./apachectl -k start
(98)Address already in use: make_sock: could not bind to address hostname:16000
no listening sockets available, shutting down
Unable to open logs

Before changing the port, check if it is free first:

netstat -an | grep LIST | grep <port num>

If you see any output of that command, then your port is already taken.

i tried :
no luck, nothing is running and even logs are 0KB.

bash-4.1$ netstat -an | grep LIST | grep 15000
bash-4.1$ netstat -an | grep LIST | grep 16000
bash-4.1$ netstat -an | grep LIST | grep 18000

I just noticed that you are trying to start apache as a user other than "root". Do you have root access to that machine?

Can you provide us what Listen address you have configured in httpd.conf? Provide "Listen" line from httpd.conf . Thanks!

Exactly what bartus11 said is right its purely permission issue, Start apache as a root user

With recent version of apache source build its showing permission denied error for me.

root@Aix:/home/akshay# apachectl -v
Server version: Apache/2.4.7 (Unix)
Server built:   Feb 23 2014 02:43:20
akshay@Aix:~$ apachectl -k start
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
(13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
root@Aix:/home/akshay# apachectl -k start
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message