httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Httpd Wiki] Update of "CouldNotBindToAddress" by thumbs
Date Wed, 09 Nov 2011 18:53:35 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.

The "CouldNotBindToAddress" page has been changed by thumbs:
http://wiki.apache.org/httpd/CouldNotBindToAddress?action=diff&rev1=13&rev2=14

Comment:
Added a SELinux / AppArmor section for troubleshooting

  === You're not root ===
  Unix based systems disallow non-root users to bind processes to port numbers below 1024.
Get root!
  
+ === SELinux / AppArmor is preventing apache httpd from binding to a specific IP/PORT ===
+ 
+ The problem is the policy which allows only typical http ports.
+ 
+ List them with:
+ 
+ `semanage port -l|grep http`
+ 
+ And add your favourite port to the existing policy:
+ 
+ `semanage port -a -t http_port_t -p tcp <PORT>`
+ 
  === apachectl/httpd stop and start in rapid succession ===
+ 
  Use apachectl restart or wait a few seconds between stop and start
  

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Mime
View raw message