Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 07-15-2005, 01:26 PM   #1
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
FC4 Apache is broken

So I installed Apache and now for some reason it is broken.

Here is what I am getting:

[root@localhost ~]# service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: Syntax error on line 249 of /etc/httpd/conf/httpd.conf:
The port number "" is outside the appropriate range (i.e., 1..65535).
My domain name is pointing to my FC4 server 100% since I am using SSH to grab this info.

Here is my /etc/httpd/conf/httpd.conf file line # 249

# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.

Can anyone please tell me what is wrong?
Old 07-15-2005, 02:44 PM   #2
Registered: Feb 2005
Location: Austin, TX
Distribution: Fedora Core 3
Posts: 34

Rep: Reputation: 15
From what the error looks like, it looks like httpd.conf is for some reason telling it to listen on an invalid port. Or it's interpreting '' as a port number? Maybe it's in the wrong place in the file?
Old 07-15-2005, 03:08 PM   #3
Registered: Jun 2005
Posts: 96

Rep: Reputation: 15
try this
i believe that is what the syntax/structure should be

hope this helps
Old 07-17-2005, 06:03 PM   #4
LQ Newbie
Registered: Jun 2004
Location: Va
Distribution: Fedora fc3
Posts: 11

Rep: Reputation: 0
The problem is not in your httpd.conf., but rather in SELinux. It is run in targeted mode by default in FC4. There is an article on how to get your Apache web server to work under FC4 in the FC4 documentation.

I had the same problem as I had setup Virtual servers pointing to /home/vs1, etc... This did not work in FC4, nor would a soft-link work since SELinux said there were no permissions. I now have it working!

The important thing here is not that SELinux is complicated but rather Apache is very complicated and SELinux enforces the rules.

I followed the FC3 documentation "Understanding and Customizing the Apache HTTP SELinux Policy" which helped me get Apache working under FC4.

The link is



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

All times are GMT -5. The time now is 04:58 PM.

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