Operating System - HP-UX
1830248 Members
2505 Online
110000 Solutions
New Discussion

Apache start : make_sock: could not bind to address [::]:80

 
sushant keerti
Advisor

Apache start : make_sock: could not bind to address [::]:80

Hi all,
I am trying to start Apache server on hpux 11.23 ia64.
I have configured the Listen port as 80.
When I try to start the Apache, it is saying
-------------------
(13)Permission denied: make_sock: could not bind to address [::]:80
no listening sockets available, shutting down
Unable to open logs
-------------------
Note : I am NOT running Apache as root


My queries are
1. How to run Apache on port 80, if I want to start apache as NOT root.

2. How to know which service/process is runnng on port 80.
7 REPLIES 7
Torsten.
Acclaimed Contributor

Re: Apache start : make_sock: could not bind to address [::]:80

You need to start apache as root.

The process will be owned by the configured user in httpd.conf.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: Apache start : make_sock: could not bind to address [::]:80

Directly from the httpd.conf file:

...
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
...
#
User www
Group www
...


As a non-root user you are not allowed to create a socket on port 80.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
sushant keerti
Advisor

Re: Apache start : make_sock: could not bind to address [::]:80

I know that, with root it can be started.
But my question is how start Apache with id other that root?
And Listen port as 80 in httpd.conf
Torsten.
Acclaimed Contributor

Re: Apache start : make_sock: could not bind to address [::]:80

Why?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: Apache start : make_sock: could not bind to address [::]:80

If you want to run apache as a non-root user you need to use a port above 1024 ... maybe there are other possibilities if you tell your reason for that.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
sushant keerti
Advisor

Re: Apache start : make_sock: could not bind to address [::]:80



Is that can I change the port number for http service name from 80 to somether number in /etc/services file, will it affect anything on the server?.If it doesn't , what other port number can I assign for http other than 80?
Torsten.
Acclaimed Contributor

Re: Apache start : make_sock: could not bind to address [::]:80

The httpd.conf is responsible for the port number - you must use a **free** port.

If you configure for example port 12345 you need to type this also into your browser

http://server:12345

Why do you want to do this???

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!