LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-04-2011, 03:14 AM   #1
sandeepshanu
LQ Newbie
 
Registered: Jan 2011
Posts: 4

Rep: Reputation: 0
Smile Apache Server Not Starting


Hi Frnz,

I am getting following error in starting the apache:
Starting httpd: (13)Permission denied: make_sock: could not bind to address 10.136.167.21:88
no listening sockets available, shutting down
Unable to open logs
[FAILED]

I have logged in as root and no other process is using port 88.
In httpd.conf i have provided "Listen 10.136.167.21:88".

I am doing it in virtual server Centos 5.
There is one more such server and same configurations settings are working fine in that. I have also compared httpd.conf, except IP there is no difference.

Can anyone tell what could be the reason for this error?

Thanks in advance..
Regards
Sandy

Last edited by sandeepshanu; 01-04-2011 at 03:19 AM. Reason: Server Version
 
Old 01-04-2011, 03:44 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi and welcome to LQ,

This is due to SELinux that by default does not allow apache to bind on port 88.
You can run:
Code:
semanage port -a -t http_port_t -p tcp 88
and try again to start apache

Regards
 
Old 01-04-2011, 04:46 AM   #3
sandeepshanu
LQ Newbie
 
Registered: Jan 2011
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
Hi and welcome to LQ,

This is due to SELinux that by default does not allow apache to bind on port 88.
You can run:
Code:
semanage port -a -t http_port_t -p tcp 88
and try again to start apache

Regards
Thanks for giving quick reply.
Its saying /usr/sbin/semanage: Port tcp/88 already defined
When i changed port to 80 or 8080, its working fine.
 
Old 01-04-2011, 05:13 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
In the default SELinux ports policy, port 80 is allowed for apache and port 8080 is allowed for http_cache, that also is a common port for apache if used as a web proxy.
If port 88 is allowed, then it should work. What gives
Code:
semanage port -l | grep http
Maybe you need to define just
Code:
Listen 88
NameVirtualHost *:88
<VirtualHost *:88>
in httpd.conf, instead of using the full IP addressort definition
 
Old 01-04-2011, 07:16 AM   #5
ComputerErik
Member
 
Registered: Apr 2005
Location: NYC
Distribution: Debian, RHEL
Posts: 269

Rep: Reputation: 54
Also what user are you trying to run this as? By default you will need to start as root to access a low numbered port and then switch the process to a less privileged user after the fact, which is usually taken care of by specifying a user in httpd.conf.
 
Old 01-11-2011, 09:22 AM   #6
sandeepshanu
LQ Newbie
 
Registered: Jan 2011
Posts: 4

Original Poster
Rep: Reputation: 0
Thanx Guyz For Ur help..
Issue is resolved now..
 
  


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
When starting a server based on Linux/Apache beckettisdogg Linux - Newbie 4 08-26-2009 05:51 PM
Apache server not starting waelaltaqi Linux - Software 5 11-08-2005 07:53 PM
apache server starting problem ukrainet Linux - Newbie 6 12-02-2004 01:30 AM
Starting Apache web server automatically gslater Linux - Newbie 4 05-09-2004 01:44 PM
Problem starting Apache Web Server kutubjt Linux - Newbie 2 04-04-2001 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:32 PM.

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