LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-24-2005, 07:25 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Apache broken on FC4


I just installed a fresh install of FC4 and this is the first time I have never seen Apache work straight out of the box.

I don't understand what is wrong with Apache but I am unable to start the HTTPD service via GUI or CLI.

Code:
[root@localhost /]# service httpd start
Starting httpd:                                            [FAILED]
Here is a SCREENSHOT

I checked for a error log located in:

/var/log/httpd & there is nothing listed there what so ever.[/b]

Usually I see a generic index.htm page for Apache that would be located in /var/www/html to show that Apache is working but now there is nothing in there. It is an empty directory.

Please help me fix my Apache.
 
Old 06-25-2005, 05:35 AM   #2
EgosZ
LQ Newbie
 
Registered: Jun 2004
Location: Australia
Distribution: Fedora Core 3, Suse Professional 9.2
Posts: 17

Rep: Reputation: 0
Have you had a look at the httpd.conf file? Make sure that all the configurations are correct.
 
Old 06-27-2005, 07:53 AM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Can anyone take a look at this and let me know what to check?

Code:
[root@localhost ~]# cd /var/www/
[root@localhost www]# ls
cgi-bin  error  html  icons  manual  usage
[root@localhost www]# cd error/
[root@localhost error]# ls
contact.html.var                     HTTP_PRECONDITION_FAILED.html.var
HTTP_BAD_GATEWAY.html.var            HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
HTTP_BAD_REQUEST.html.var            HTTP_REQUEST_TIME_OUT.html.var
HTTP_FORBIDDEN.html.var              HTTP_REQUEST_URI_TOO_LARGE.html.var
HTTP_GONE.html.var                   HTTP_SERVICE_UNAVAILABLE.html.var
HTTP_INTERNAL_SERVER_ERROR.html.var  HTTP_UNAUTHORIZED.html.var
HTTP_LENGTH_REQUIRED.html.var        HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
HTTP_METHOD_NOT_ALLOWED.html.var     HTTP_VARIANT_ALSO_VARIES.html.var
HTTP_NOT_ACCEPTABLE.html.var         include
HTTP_NOT_FOUND.html.var              noindex.html
HTTP_NOT_IMPLEMENTED.html.var        README
 
Old 06-27-2005, 07:16 PM   #4
newuser455
Member
 
Registered: May 2004
Location: Texas
Posts: 277

Rep: Reputation: 30
That doesn't really tell me much...

If you don't mind, you might paste your /etc/httpd/conf/httpd.conf file and I can take a look at it
 
Old 06-28-2005, 09:21 AM   #5
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Quote:
Originally posted by EgosZ
Have you had a look at the httpd.conf file? Make sure that all the configurations are correct.
I don't know where this file is located on my Fedora 4 system. I have looked and am not able to locate this.
 
Old 06-28-2005, 09:25 AM   #6
newuser455
Member
 
Registered: May 2004
Location: Texas
Posts: 277

Rep: Reputation: 30
Code:
# cd /
# find -name 'httpd.conf'
You are sure it is not in /etc/httpd/conf? That is where it has always been for me.
 
Old 06-29-2005, 03:02 AM   #7
EgosZ
LQ Newbie
 
Registered: Jun 2004
Location: Australia
Distribution: Fedora Core 3, Suse Professional 9.2
Posts: 17

Rep: Reputation: 0
Under Linux command shell, try :

Code:
updatedb
This command might take some time (2-3 mins) to finish. You then try:

Code:
slocate httpd.conf
This will show all the paths that contain the file name httpd.conf. Pick an appropriate one and paste the content here so I can have a closer look.
 
Old 06-29-2005, 03:14 AM   #8
pollo
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
same problem

I have same problem with FC4 and apache 2 out of the box.
I'm using same httpd.conf than I used with FC3.

command "service httpd start" gives [failed] without explanations or error logs.

command "service httpd configtest" gives syntax ok.

command "apachectl start" starts apache without errors and it works.

Is there be something wrong with the /etc/init.d/httpd script ?
 
Old 07-07-2005, 02:28 PM   #9
billehunt
LQ Newbie
 
Registered: Mar 2004
Posts: 9

Rep: Reputation: 0
I have the same problem as described by pollo.

At first I thought it was SELinux, but disabling that didn't solve.

I've played with the init.d script:
replacing the entire /etc/init.d/httpd script with:
Code:
!#/bin/bash
/usr/sbin/httpd
echo $?
http doesn't start; returns 1. (no errors or log entries)

The line in /sbin/service that calls the init.d script reads:
Code:
env -i LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" ${OPTIONS}
changing it to echo shows the line sent to the init.d script is:
Code:
env -i LANG=en_US.UTF-8 PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin TERM=linux /etc/init.d/httpd start
Directly executing that line from the command prompt works fine.

changing that line in /sbin/service to
Code:
/usr/sbin/httpd
also works.


I'm completely stumped.
 
Old 07-07-2005, 02:36 PM   #10
billehunt
LQ Newbie
 
Registered: Mar 2004
Posts: 9

Rep: Reputation: 0
wow.

rebooted and it's fine. I know I rebooted after I made the selinux change. I know it, I know it.

Anyway, I believe it was selinux.

I'm sure this isn't the best solution, but disabling selinux is done by editing /etc/sysconfig/selinx, and setting
Code:
SELINUX=disabled
Then reboot. Maybe twice; I can't explain that part.
 
Old 07-07-2005, 02:41 PM   #11
snapper64
Member
 
Registered: Aug 2004
Location: At my Computer
Distribution: Redhat 7.3
Posts: 37

Rep: Reputation: 15
Unfortunately i cant offer a technical solution, however i would advise you to install apache version 1.3 instead, it is far more stable and has far less compatibilty issues . . .
 
Old 07-07-2005, 02:50 PM   #12
billehunt
LQ Newbie
 
Registered: Mar 2004
Posts: 9

Rep: Reputation: 0
Um, that's a highly debatable point.

Also, in this particular context, I don't see why a different apache would solve the problem. I don't believe it would.
 
Old 07-08-2005, 01:53 AM   #13
pollo
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
I have selinux enabled and the service httpd command working.
Just commented the following line from /etc/init.d/httpd:
check13 || exit 1

Strange that check13 didn't echo anything anywhere...
 
Old 07-18-2005, 06:12 PM   #14
ChasH.in.NC
LQ Newbie
 
Registered: Jul 2005
Location: Stokes County, NC
Distribution: Fedora Core 4
Posts: 3

Rep: Reputation: 0
Lightbulb More to add

This is my first post here so, I hope solves someone's problem...

I'd like to add something to expand on billehunt's ideas...

When I opened selinux to edit the first thing I notices is this line:
Code:
SELINUX=Permissive
Note the capital P!

When I changed that P to lower case and rebooted, BAM! I watched as httpd successfully started. I opened Konqueror to localhost and all was well. I browsed to my phpinfo() page and It was all good.

I see a considerable amount of chatter about Apache being broken in FC4...
Maybe what I found is the trouble.
 
  


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
ipw2200 broken after upgrade from FC3 to FC4 chrismo Linux - Wireless Networking 1 12-06-2005 10:53 AM
FC4 Apache is broken carlosinfl Fedora 3 07-17-2005 05:03 PM
FC4 yum broken after upgrade Kabuso Fedora 4 06-26-2005 04:49 PM
FC4 has broken my ADSL setup djsbriscoe Linux - Networking 1 06-18-2005 10:26 AM
Redhat 9's autotools broken for apache, mysql, php? rylan76 Linux - Software 0 04-15-2004 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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