Fedora Linux Support Community & Resources Center
  #1  
Old 10th February 2009, 01:08 AM
gramirez2012 Offline
Registered User
 
Join Date: Sep 2008
Location: Barrington, IL, USA
Age: 19
Posts: 8
FC3 web server problems

Hi,

I currently have FC3 (no wise cracks please! ) set up with a basic web server install of HTTPD (Apache I believe), PHP, MySQL, FTP, and Mail. The httpd is loaded at bootup, and when I type in the server's local IP address ON the server's Firefox browser, I get the default http page. However, if I type in the domain which I have set up (port forwarding is configured), it doesn't connect.

Workstations in the Intranet cannot get anything out of the server. I assume that internet users can't access it either.

I consider myself very ignorant when it comes to linux, so I'm hoping there's an easy fix. It's been a while since I've dealt with this stuff, as I've always done webservers on the Mac platform.

Thanks in advance!
-Gil
Reply With Quote
  #2  
Old 10th February 2009, 01:32 AM
Johnny Utah's Avatar
Johnny Utah Offline
Registered User
 
Join Date: May 2008
Location: San Francisco, CA
Age: 31
Posts: 31
Are users in the intranet hitting the server by hostname or IP address?
Reply With Quote
  #3  
Old 10th February 2009, 01:33 AM
gramirez2012 Offline
Registered User
 
Join Date: Sep 2008
Location: Barrington, IL, USA
Age: 19
Posts: 8
Both the domain name, as well as local IP address, if that's what you mean.
Reply With Quote
  #4  
Old 10th February 2009, 01:36 AM
Johnny Utah's Avatar
Johnny Utah Offline
Registered User
 
Join Date: May 2008
Location: San Francisco, CA
Age: 31
Posts: 31
What's the output of the following commands:

Code:
tail /var/log/httpd/error_log
Code:
tail /var/log/httpd/access_log
Reply With Quote
  #5  
Old 10th February 2009, 01:40 AM
Johnny Utah's Avatar
Johnny Utah Offline
Registered User
 
Join Date: May 2008
Location: San Francisco, CA
Age: 31
Posts: 31
Also, I would stop IPTABLES while you troubleshoot:

Code:
service iptables stop

Last edited by Johnny Utah; 10th February 2009 at 01:45 AM.
Reply With Quote
  #6  
Old 10th February 2009, 03:24 AM
djvaporz Offline
Registered User
 
Join Date: Feb 2005
Location: USA
Posts: 53
try looking in /etc/httpd/conf/httpd.conf for this entry
#ServerName localhost:80

replace localhost with your FQDN, make sure it is uncommented, and restart apache

/sbin/server httpd restart
__________________
cheers ...

DjVaporz

:apache + mysql + php
:nfs + pxe + tftp
Reply With Quote
  #7  
Old 10th February 2009, 08:34 PM
gramirez2012 Offline
Registered User
 
Join Date: Sep 2008
Location: Barrington, IL, USA
Age: 19
Posts: 8
Quote:
Originally Posted by Johnny Utah View Post
What's the output of the following commands:

Code:
tail /var/log/httpd/error_log
[root@web ~]# tail /var/log/httpd/error_log
[Mon Feb 09 18:51:03 2009] [error] [client 192.168.1.100] File does not exist: /var/www/html/favicon.ico
[Mon Feb 09 18:55:42 2009] [notice] caught SIGTERM, shutting down
[Mon Feb 09 18:57:31 2009] [notice] core dump file size limit raised to 4294967295 bytes
[Mon Feb 09 18:57:32 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Feb 09 18:57:33 2009] [notice] Digest: generating secret for digest authentication ...
[Mon Feb 09 18:57:33 2009] [notice] Digest: done
[Mon Feb 09 18:57:33 2009] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Mon Feb 09 18:57:33 2009] [notice] LDAP: SSL support unavailable
[Mon Feb 09 18:57:34 2009] [notice] mod_python: Creating 4 session mutexes based on 150 max processes and 0 max threads.
[Mon Feb 09 18:57:35 2009] [notice] Apache/2.0.52 (Fedora) configured -- resuming normal operations
[root@web ~]#



Quote:
Code:
tail /var/log/httpd/access_log
[root@web ~]# tail /var/log/httpd/access_log
192.168.1.100 - - [09/Feb/2009:18:51:03 -0600] "GET / HTTP/1.1" 403 3931 "-" "Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041020 Firefox/0.10.1"
192.168.1.100 - - [09/Feb/2009:18:51:03 -0600] "GET /icons/apache_pb2.gif HTTP/1.1" 200 2414 "http://192.168.1.100/" "Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041020 Firefox/0.10.1"
192.168.1.100 - - [09/Feb/2009:18:51:03 -0600] "GET /icons/powered_by_fedora.png HTTP/1.1" 200 2243 "http://192.168.1.100/" "Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041020 Firefox/0.10.1"
192.168.1.100 - - [09/Feb/2009:18:51:03 -0600] "GET /favicon.ico HTTP/1.1" 404 331 "-" "Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041020 Firefox/0.10.1"
[root@web ~]#

Quote:
try looking in /etc/httpd/conf/httpd.conf for this entry
#ServerName localhost:80

replace localhost with your FQDN, make sure it is uncommented, and restart apache

/sbin/server httpd restart
didn't work. does it just need to be the domain (something.com), or is the http:// and port # required too?
Reply With Quote
  #8  
Old 11th February 2009, 09:14 AM
marcrblevins's Avatar
marcrblevins Offline
Registered User
 
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168
Try:
Code:
su -
service network restart
service httpd restart
ifconfig
hostname
Reply With Quote
  #9  
Old 11th February 2009, 06:14 PM
gramirez2012 Offline
Registered User
 
Join Date: Sep 2008
Location: Barrington, IL, USA
Age: 19
Posts: 8
ifconfig outputs:
Code:
[root@web ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:08:02:1B:FD:CF
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::208:2ff:fe1b:fdcf/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4217 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1629 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:517500 (505.3 KiB)  TX bytes:130150 (127.0 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2407 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2407 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2817058 (2.6 MiB)  TX bytes:2817058 (2.6 MiB)
hostname outputs to domain name.
Reply With Quote
  #10  
Old 11th February 2009, 06:29 PM
gramirez2012 Offline
Registered User
 
Join Date: Sep 2008
Location: Barrington, IL, USA
Age: 19
Posts: 8
AHA! I fixed the problem! It turns out that security was blocking the HTTP port.

Now I would like to add FTP capabilities to the server as well. What's the easiest method for doing so?

Thanks for your help, everyone!
Reply With Quote
  #11  
Old 12th February 2009, 09:34 AM
marcrblevins's Avatar
marcrblevins Offline
Registered User
 
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168
You meant iptables blocked your port 80? Thought you had iptables off.
Try:
Code:
su -
iptables --list
service httpd status
service vsftpd status
Reply With Quote
Reply

Tags
fc3, problems, server, web

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
smb server problems desimo Using Fedora 6 20th February 2006 09:20 PM
Problems with server matt522 Servers & Networking 1 27th January 2005 10:19 PM
Problems with X.org server? beady Fedora Core 2 Test Releases 3 28th March 2004 01:12 AM


Current GMT-time: 13:44 (Thursday, 23-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