Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 16th April 2006, 02:17 AM
highestblue Offline
Registered User
 
Join Date: Apr 2006
Posts: 9
Problem with setting up the webserver

I was able to setup everything ok due to the wonderful guide at http://stanton-finley.net/fedora_cor...ion_notes.html.

But I have two problems. And I'm guessing they are probably caused by the same reason.

First, I can't change the index screen to show anything else than the

Quote:
thttpd - tiny/turbo/throttling HTTP server
[thttpd logo]
[Fedora Logo]
Second, when I try to browse http://myserver.com/phpmyadmin I get
Quote:
404 Not Found The requested URL '/phpmyadmin' was not found on this server.
When I check the status of httpd under Server Settings -Service, it is shown as stopped. And during the loading stage to the login screen, everything checks out ok, but there's one failure which says something like

Quote:
port http://myserver.com/ is outside of appropriate range.
I figured firewall must be the issue, so I played with all three ports 80,433,8080, but it didn't do any good.

Any help will be very much appreciated. Thanks.
  #2  
Old 16th April 2006, 03:24 PM
highestblue Offline
Registered User
 
Join Date: Apr 2006
Posts: 9
Hi, just updating my staus on this issue. Someone suggested that I try,
Quote:
[you@localhost ~]$ su -
Password:
[root@localhost ~]# service thttpd stop
Stopping thttpd: [ OK ]
[root@localhost ~]# service httpd start
Starting httpd: [ OK ]
[root@localhost ~]
I did as said.
Quote:
[root@localhost ~]# service thttpd stop
Stopping thttpd: [ OK ]
I got an ok for this line.

Quote:
[root@localhost ~]# service httpd start
But this one failed. The first error I got was in line 264,
Quote:
ServerName http://myserver.com
As before it was saying the port is outside of appropriate range. So I put the port number after it.
Quote:
ServerName http://myserver.com:80
After I did this, I got a new error saying,
Quote:
Starting httpd: httpd: Syntax error on line 172 of /etc/httpd/conf/httpd.conf: LoadModule takes two arguments, a module name and the name of a shared object file to load it from
Think anyone can identify my problem?
  #3  
Old 16th April 2006, 03:39 PM
smfinley's Avatar
smfinley Offline
Retired Community Manager
 
Join Date: Jul 2004
Posts: 1,335
Are you running 32 bit or 64 bit Fedora Core? What is the content of your line 172 in /etc/httpd/conf/httpd.conf? Mine is "LoadModule usertrack_module modules/mod_usertrack.so". Try commenting out that line. (Put a "#" in front of it.) You will have to restart Apache after you do this.
__________________
Stanton Finley
stanton-finley.net

Last edited by smfinley; 16th April 2006 at 03:47 PM.
  #4  
Old 16th April 2006, 04:26 PM
highestblue Offline
Registered User
 
Join Date: Apr 2006
Posts: 9
Hi Stan, I'm running the 64 bit Fedora Core. I commented out all the module lines that were getting the syntax errors. Whiche were,
Line172
Quote:
LoadModule usertrack_module modules/mod_usert rack.so
Line185
Quote:
LoadModule userdir_module modules/mod_userdir .so
Line195
Quote:
LoadModule disk_cache_module modules/mod_disk _cache.so
Now I'm back to the original error regarding the port number at line 264.
Quote:
Starting httpd: Syntax error on line 264 of /etc/httpd/conf/httpd.conf:
The port number "http://myserver.com:80" is outside the appropriate range (i.e., 1..65535).
  #5  
Old 16th April 2006, 05:02 PM
highestblue Offline
Registered User
 
Join Date: Apr 2006
Posts: 9
I think the problem must be with the DDclient. I'm going out now, but I will play around with the ddclient.conf file and report back on how things progress.
  #6  
Old 17th April 2006, 02:54 AM
highestblue Offline
Registered User
 
Join Date: Apr 2006
Posts: 9
Looks like ddclient wasn't the problem. When I run its debug command, everything checks out fine.

Quote:
Starting httpd: Syntax error on line 264 of /etc/httpd/conf/httpd.conf:
The port number "http://mydomain.dyndns.org" is outside the appropriate range (i.e., 1..65535).
is still the problem.

Any suggestions?
  #7  
Old 17th April 2006, 05:54 AM
smfinley's Avatar
smfinley Offline
Retired Community Manager
 
Join Date: Jul 2004
Posts: 1,335
Examine your /etc/httpd/conf/httpd.conf carefully. Make sure the line "ServerName www.example.com:80" has no extra characters in it, especially after the "80" and that the line breaks right after the "80".
__________________
Stanton Finley
stanton-finley.net
  #8  
Old 17th April 2006, 04:59 PM
highestblue Offline
Registered User
 
Join Date: Apr 2006
Posts: 9
Finally got it working. With Stan's advice about "making sure there's no extra characters" in mind,

I took out the "http://" in http://mydomain.dyndns.org

I tried with and without the port number at the end of the url.
Quote:
mydomain.dyndns.org
mydomain.dyndns.org:80
Either one works.
So whether or not putting the port number at the end doesn't seem to make a difference. At least for me that is. The real problem was putting "http://" in the front.

After I did this I got a new error saying,
Quote:
Starting httpd: Syntax error on line 292 of /etc/httpd/conf/httpd.conf:
Illegal option Options
So I commented out both line 292 and 293 which are
Quote:
Line 292 Options Options Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
Line 293 AllowOverride Options FileInfo AuthConfig Limit
Also after this I did,
Quote:
service httpd stop
service httpd start
both checked out fine.

Even after this I had to go through one more step which was to,
Quote:
gedit /etc/hosts
and change the ip address in the file accordingly as I'm using the free dynamic dns service.
Quote:
127.0.0.1 localhost.localdomain localhost
xx.xx.x.xxx (changed this ip address) mydomain.dyndns.org mydomain
After this, everything worked out fine.

At this point I have a question. Since I have a dynamic dns, the ip address will keep changing.
I realize the program ddclient is used to accomdate such issue. But I doubt it changes the ip address typed in the /etc/hosts. And unless ip address typed in /etc/hosts matches with the changing dynamic DNS, I can't access my server.

Is there a way to get around this problem?

Last edited by highestblue; 17th April 2006 at 05:08 PM.
Closed Thread

Tags
problem, setting, webserver

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a guide for setting up a webserver on FC5 tidy_boy Servers & Networking 2 26th April 2006 09:33 PM
accessing machine as webserver without setting up dns...? RadioactiveFrog Servers & Networking 2 5th December 2005 09:54 AM
Setting Up Webserver Artluo100 Servers & Networking 18 28th June 2005 06:10 PM
Setting Up Router For Webserver derek_lee_alby Servers & Networking 13 23rd March 2005 07:10 PM
Setting up Webserver help? and domains Shadoxity Servers & Networking 2 21st March 2005 07:24 AM


Current GMT-time: 12:42 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat