LinuxQuestions.org
Help answer threads with 0 replies.
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 07-15-2005, 12:26 PM   #1
carlosinfl
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:

Code:
[root@localhost ~]# service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: Syntax error on line 249 of /etc/httpd/conf/httpd.conf:
The port number "http://carlwill.dyndns.org" 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.

http://carlwill.dyndns.org

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.
#
ServerName http://carlwill.dyndns.org


Can anyone please tell me what is wrong?
 
Old 07-15-2005, 01:44 PM   #2
FrayAdjacent
Member
 
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 'http://carlwill.dyndns.org' as a port number? Maybe it's in the wrong place in the file?
 
Old 07-15-2005, 02:08 PM   #3
mhallbiai
Member
 
Registered: Jun 2005
Posts: 96

Rep: Reputation: 16
try this
Code:
ServerName carlwill.dyndns.org:80
i believe that is what the syntax/structure should be

hope this helps
 
Old 07-17-2005, 05:03 PM   #4
egurski
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 http://fedora.redhat.com/docs/selinux-apache-fc3/

 
  


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
Apache broken on FC4 carlosinfl Fedora 13 07-18-2005 06:12 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:46 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