LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-29-2010, 05:42 AM   #16
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61

Does your httpd.conf file contain "Listen 10.1.1.66:80"? If so, try setting it to "Listen 80". Is your /etc/hosts file OK? Does it have the required "127.0.0.1 localhost.localdomain localhost" entry?

I'm grasping really, all of these things would cause a problem at boot AND during manual startup, not just at boot time.
 
Old 03-29-2010, 05:50 AM   #17
m3phisto
Member
 
Registered: Mar 2010
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
You can delete the httpd service from chkconfig and use /etc/rc.d/rc.local to start apache (rc.local executes after all the other startup scripts).
Just add:
Code:
/usr/sbin/apachectl start
in rc.local

didn't work. same arror.
 
Old 03-29-2010, 05:56 AM   #18
m3phisto
Member
 
Registered: Mar 2010
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by blacky_5251 View Post
Does your httpd.conf file contain "Listen 10.1.1.66:80"? If so, try setting it to "Listen 80". Is your /etc/hosts file OK? Does it have the required "127.0.0.1 localhost.localdomain localhost" entry?

I'm grasping really, all of these things would cause a problem at boot AND during manual startup, not just at boot time.
the hosts file is ok.


the "listen 80" solved the problem !

thx a lot for your help!
 
Old 03-29-2010, 06:04 AM   #19
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
I wonder why it worked after boot but not during boot?

I do not like such weirdness
 
Old 03-29-2010, 06:17 AM   #20
m3phisto
Member
 
Registered: Mar 2010
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by blacky_5251 View Post
I wonder why it worked after boot but not during boot?

I do not like such weirdness
me too.
would be good to know why to solve future problems
 
Old 03-29-2010, 06:35 AM   #21
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
Well, I guess that by the time apache starts, the interface with ip 10.1.1.66 is not up yet.
How do you get your IP?
 
Old 03-29-2010, 06:39 AM   #22
m3phisto
Member
 
Registered: Mar 2010
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
Well, I guess that by the time apache starts, the interface with ip 10.1.1.66 is not up yet.
How do you get your IP?
its assigned via DHCP. (but with an static entry in the DHCP config)

i'm really shure thats it
 
Old 03-29-2010, 06:50 AM   #23
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
I'm also sure.
The dhcp serveer somehow delays a bit to assign the ip, so apache bails out on boot.
Why don't you assign the ip directly to your server and stop waiting for the dhcpd to assign it?
 
Old 03-29-2010, 07:09 AM   #24
m3phisto
Member
 
Registered: Mar 2010
Posts: 47

Original Poster
Rep: Reputation: 15
cous this is my exerimental server @ work running on my private notebook.
 
Old 09-04-2011, 05:33 AM   #25
friksa
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Rep: Reputation: Disabled
Turn SELinux off

Had the same problem. httpd would not start on reboot, but I could manually start it without a problem.

Turned out the SELinux prevented it. So I changed it to permissive from the setup utility and it started fine on reboot.

Hope it saves someone time.

Frik
 
Old 09-04-2011, 06:30 AM   #26
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
It is an easy fix, but one I would argue against. Take the time to resolve any SELinux issues, don't just give up on it
 
Old 09-04-2011, 06:34 AM   #27
friksa
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Rep: Reputation: Disabled
Agree. This is a clean install and I expected it to work better.

The reason for posting it, is to give people an idea on where to start looking.
 
  


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
tomboy autostart in xfce, though not on autostart list zlya Linux - Desktop 2 11-10-2009 10:49 AM
Starting httpd: httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax sethukpathi Linux - Networking 6 04-12-2008 11:26 AM
httpd problem and caused my httpd to shut-down golpemortal Linux - Server 2 04-08-2007 03:44 AM
Fetchmail autostart problem gugabaga Linux - Software 2 03-09-2006 09:08 AM
problem with autostart rhotzenplotz Linux - Newbie 2 01-04-2003 03:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:04 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