LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-14-2014, 08:54 AM   #1
ESER666
LQ Newbie
 
Registered: Dec 2014
Posts: 2

Rep: Reputation: Disabled
HTTPD in Centos6 won't start im getting crazy


Hello , so yesterday i received my dedicated server as usual i installed httpd

i get this error

[root@host ~]# strace -f -o apache.trace /usr/sbin/httpd
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

i also try to change HTTPD port but same error i try to reboot or reinstall package but still same error

httpd start but not show online and the log show me this

[Sun Dec 14 09:01:08 2014] [notice] Apache/2.2.15 (Unix) DAV/2 configured -- resuming normal operations
[Sun Dec 14 09:04:34 2014] [notice] caught SIGTERM, shutting down
[Sun Dec 14 09:04:34 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Dec 14 09:04:34 2014] [notice] Digest: generating secret for digest authentication ...
[Sun Dec 14 09:04:34 2014] [notice] Digest: done

i also try to disable SELinux :s
 
Old 12-14-2014, 11:15 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Sounds like something is already listening on port 80. What does "netstat -tpan" show?
 
Old 12-14-2014, 11:25 AM   #3
ESER666
LQ Newbie
 
Registered: Dec 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks BTmiller for your reply i was forgot to do setenforce 0 and now is working.
 
Old 12-14-2014, 07:49 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Well turning off SELinux is one way to solve the problem, but it would be better to edit your SELinux policy so that httpd has the necessary authorization to bind to port 80. Simply disabling security features is usually not a smart policy, although it can be useful in a pinch to verify that the security policy is indeed to problem.
 
Old 12-14-2014, 11:16 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
setenforce 0 and now is working.
on a server DO NOT turn off SE !!!!
for setting up and testing set it to "permissive"
and read the selinuxtroubleshooter WARNINGS
and fix them
then set SE to "Enforcing "


How did you install Apache ?
if from source ,then i take it you did not install the apache SE policies via yum

please do so


PS.
now that it is set to "off" when you turn it back on
the entire drive array will need to be relabeled
if this is say 10 TiB or larger

that will take all day ( and then some) to finish

Last edited by John VV; 12-14-2014 at 11:19 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
httpd won't start charlie2450 Linux - Newbie 17 03-12-2008 07:23 PM
httpd won'[t start charlie2450 Linux - Server 1 03-12-2008 07:19 AM
httpd won't start jim.thornton Linux - Newbie 2 01-06-2008 02:57 PM
httpd service won't start GavB Linux - Newbie 4 01-19-2007 07:56 AM
httpd-2.0.50-1.0 won't start RH9 jariep Red Hat 5 08-21-2004 02:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration