Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20th March 2012, 05:59 PM
settingsun Offline
Registered User
 
Join Date: Aug 2011
Posts: 150
windows_xp_2003firefox
SELinux preventing apache from binding to port

I recently tried to change the port Apache listens on. Apache would not start.


I got this error message from fedora:
Code:
SELinux is preventing /usr/sbin/httpd from binding to port 81

httpd has a permissive type (httpd_t). This access was not denied.

SELinux has denied the httpd from binding to a network port 81 which does not have an SELinux type associated with it.

If httpd should be allowed to listen on 81, use the semanage command to assign 81 to a port type that httpd_t can bind to (ntop_port_t      http_cache_port_t      http_port_t)
Does anyone know how to do this? Thanks
Reply With Quote
  #2  
Old 1st April 2012, 01:48 PM
domg472 Offline
SELinux Contributor
 
Join Date: May 2008
Posts: 621
linuxfirefox
Re: SELinux preventing apache from binding to port

semanage port -a -t http_port_t -p tcp 81
__________________
Come join us on #fedora-selinux on irc.freenode.org
http://docs.fedoraproject.org/selinu...ide/f10/en-US/
Reply With Quote
Reply

Tags
apache, binding, port, preventing, selinux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache binding only to ipv6 berky Servers & Networking 8 16th February 2009 05:11 AM
Apache binding to Active Directory - Use Web Shares CraigWatson Servers & Networking 1 11th February 2009 08:57 AM
SElinux is preventing... Beralus Security and Privacy 4 18th November 2008 08:24 AM


Current GMT-time: 14:53 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat