Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Apache 2.0 Running a site on another port with a second ipaddress



Stephen B Goldman wrote:
> Running Apache 2.0 - I received a "no listening sockets" when I try to
> bind a second ip address (192.168.1.110) Port 1185 on my web server.

It isn't clear from your description whether you are adding an IP alias 
using a non-standard listening port, if you are just adding a second 
listening port on the same IP, or changing the port from 80 to 1185.


> [root at tophat log]# tail messages
[...]
> Apr 20 10:07:20 tophat httpd: httpd shutdown failed
> Apr 20 10:07:25 tophat httpd: (13)Permission denied: make_sock: could not bind
> to address 192.168.1.110:1185
> Apr 20 10:07:25 tophat httpd: no listening sockets available, shutting down
> Apr 20 10:07:25 tophat httpd: Unable to open logs
> Apr 20 10:07:25 tophat kernel: audit(1177078045.770:10): avc:  denied  {
> name_bind } for  pid=6497 comm="httpd" src=1185 scontext=root:system_r:httpd_t
> tcontext=system_u:object_r:port_t tclass=tcp_socket
> Apr 20 10:07:25 tophat httpd: httpd startup failed

This wouldn't happen to be a Red Hat system running SELinux where you 
need to adjust the rules to allow the httpd process to access the 
otherwise non-privileged port, 1185? The kernel log entry above suggests 
this is the problem.

  -Tom

-- 
Tom Metro
Venture Logic, Newton, MA, USA
"Enterprise solutions through open source."
Professional Profile: http://tmetro.venturelogic.com/

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org