LinuxQuestions.org
Register a domain and help support LQ
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 11-23-2005, 06:09 PM   #1
mazonka
LQ Newbie
 
Registered: Nov 2005
Posts: 3

Rep: Reputation: 0
apache, fedora, strange starting up


trying to start httpd using command
# service httpd start
or
# /etc/init.d/httpd start
[FAILED]es

And log file is empty - nothing is written.

But
# /usr/sbin/httpd
or
# sh /etc/init.d/httpd start
[OK]es

This looks weird.
I have installed bare FC4.
Then
yum install httpd

I also updated selinux-poliicy-targeted (because I thought that that may be a problem) but it has not helped.

Please help!
I do not want just to get it working, but I would like to understand what is going on.
 
Old 11-23-2005, 06:34 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,154

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
A guess: Try init.d/httpd status to see if it's already running, and ... restart to restart it if it is.

Also, check dmesg | grep httpd to see if the messages might be there.

Note: I'm just guessing. I don't run a server, and have NO experience with httpd.
 
Old 11-23-2005, 07:09 PM   #3
mazonka
LQ Newbie
 
Registered: Nov 2005
Posts: 3

Original Poster
Rep: Reputation: 0
GURU, please help!

Another thing is that if I use the original config file then it starts fine. But when I modify DocumentRoot directory then it fails. First thought is of course file permissions. They are fine - I checked. Once httpd starts then it works with no problem.
Why these 2 commands make difference:
# /etc/init.d/httpd start [FAILED]
and
# sh /etc/init.d/httpd start [OK]
or
# bash /etc/init.d/httpd start [OK]

I suspect this is something with selinux. I do not want to disable it. How I can get to the bottom of this problem?
 
Old 11-25-2005, 04:38 PM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,154

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
Again, just guessing, but: if you do a ls -l /etc/init.d/httpd, is it listed as an executable file?

(My thought is that sh and bash force the file to run as a script. On most systems, the init.d scripts are invohed from within the system startup script by a "dot" command, so they don't actually need to be executable.)

Oh, by the way, changing selinux so it doesn't block a specific access involves a fairly simple addition to its control file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 08:28 PM
apache with strange behavior dimc Linux - Software 5 11-07-2004 04:58 PM
HELP ! very strange apache logs ! qwijibow Linux - Security 2 09-15-2004 11:24 PM
STRANGE: Programs starting with K will not print cheerfulpickle Linux - Newbie 1 07-28-2004 12:07 PM
Strange Apache LOGs... TheIrish Linux - Security 3 02-10-2004 02:15 PM


All times are GMT -5. The time now is 12:20 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration