Visit Our UNIX and Linux User Community


Unable to start the apache web server


 
Thread Tools Search this Thread
Top Forums Web Development Unable to start the apache web server
# 1  
Old 04-04-2014
Unable to start the apache web server

Hi All,

I'm getting this below error

Code:
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:

Code:
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


Last edited by bartus11; 04-04-2014 at 12:44 PM.. Reason: Please use [code][/code] tags.
# 2  
Old 04-04-2014
Before changing the port, check if it is free first:
Code:
netstat -an | grep LIST | grep <port num>

If you see any output of that command, then your port is already taken.
# 3  
Old 04-04-2014
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
# 4  
Old 04-04-2014
I just noticed that you are trying to start apache as a user other than "root". Do you have root access to that machine?
# 5  
Old 04-04-2014
Can you provide us what Listen address you have configured in httpd.conf? Provide "Listen" line from httpd.conf . Thanks!
# 6  
Old 04-05-2014
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.
Code:
root@Aix:/home/akshay# apachectl -v
Server version: Apache/2.4.7 (Unix)
Server built:   Feb 23 2014 02:43:20

Code:
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

Code:
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


Previous Thread | Next Thread
Test Your Knowledge in Computers #656
Difficulty: Medium
Microsoft and IBM began developing OS/2 as an alternative to Unix.
True or False?

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help getting a web page to start a server.

Wont let me add the solved tag, say's im over the max. Removing 2 tags did not help. No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial One of my game servers keeps going offline and so I want to... (18 Replies)
Discussion started by: Stuperfied
18 Replies

2. Web Development

Apache 2.4 web server - string manipulation

Hi, I have configured an Apache 2.4 web server for Kerberos authentication. I need to pass the user in an HTTP header to the back-end server. This can be achieved by:- # Set header to blank RequestHeader set KERBEROS_USER "" # Set header RequestHeader set KERBEROS_USER "%{REMOTE_USER}s"... (0 Replies)
Discussion started by: sniper57
0 Replies

3. HP-UX

Apache web server instalation error in HP-UX 11.31

Hi , I am getting an error while installing on a new hp-ux 11.31 server for the first time. I have troubleshooted to some extent and installed the C compiler which it was asking for and now a new error has arised. please find the below error, Any help would be appreciated. $ make Making all... (1 Reply)
Discussion started by: Prasad@hp-ux
1 Replies

4. Web Development

Apache Web Server Config

Hi Gurus I am a newbie in Apache. I want to configure Apache Web server(A for reference) to receive all requests on Port-843 to be redirected to another Apache web server(B) and access a crossdomain.xml(located in /var/www/html) file there. I have put the following entries in... (0 Replies)
Discussion started by: Hari_Ganesh
0 Replies

5. Solaris

Uninstall Apache web server

Hello, I have a Solaris 10 and it looks like it was installed with apache. I see some files in: Since I'd like to use CSWapache2 from OpenCSW I'd like to remove the one from SUN but I don't know which package name it has. Do you know how can I remove it ? Thanks R.F ---------- Post... (4 Replies)
Discussion started by: RobertFord
4 Replies

6. Red Hat

How to start the right instance of Apache on RedHat server

Hi, I have 2 apache instance on my machine (RedHat), and i need to start the "apache2" after any reboot but could not find the way ( searching into "httpd.conf" ), so i'am starting "apache2" manually. After a reboot, none of them starts and when i when doing : httpd -k start, i got "apache"... (14 Replies)
Discussion started by: mehdi1973
14 Replies

7. Solaris

Apache web server question

Hi - Maybe not the right forum for this but I will ask anyway.. I recently installed apache on my ultra 10 - solaris 9... Working okay - and I have some docs in my htdocs directory that I can access through a web browser.. Now I want to get a bit fancy and change the home page so I can... (2 Replies)
Discussion started by: frustrated1
2 Replies

8. UNIX for Dummies Questions & Answers

Apache Web Server

Hi, Can someone help me for the Apache Web Server files for HP-UX 11.0 systems. Is there any download available? Thanks in Advance Anent (9 Replies)
Discussion started by: anent
9 Replies

Featured Tech Videos