FC4 WebServer installation stuck

Discussion in 'Installation/Configuration' started by Nazart, Dec 8, 2005.

  1. Nazart

    Nazart New Member

    Hi all,

    I've been stucked at FC4 WedServer setting for days. I need your help and sincerely hope that anyone of you could assist. Mr. Falko or Till maybe.

    I've registered a domain name www.gwoman.com. I'm experimenting Fedora Core 4 WebServer setting at my home with:

    Fixed IP : 219.93.66.145
    Mask : 255.255.255.252
    D.Gateway : 192.168.101.1
    ISP's DNS : "202.188.0.133" & "202.188.1.5"

    Under registrar's server I've created:
    ns1.gwoman.com - 219.93.66.145 (used Fixed IP given by ISP)
    ns2.gwoman.com- 202.188.0.133 (used ISP's DNS - "Please Advice if wrong") and path www.gwoman.com to this 2 dns.

    Apache setting is working fine and the server(PC) is connected.

    At FireFox's URL field of this server(this PC), when I type "localhost" or "www.gwowam.com" or "gwoman.com" or "219.93.66.145" the trial index.html appear as expected. But the probelm is:

    I can't see expected index.html trial page at other PC(other than the server's PC). The error message is "Can't find the server..."

    What have I done wrong? Have I miss anythings ??

    I used FC4 GUI to configue the NIC:

    a. under "Statically set IP address", I've set:
    Fixed IP : 219.93.66.145
    Mask : 255.255.255.252
    D.Gateway : 192.168.101.1

    b. under "DNS", I've set :
    Hostname : gwoman.com
    Primary DNS : 202.188.0.133 (used ISP's DNS)

    c. under "Hosts", I've set
    219.93.66.145 - www.gwoman.com
    219.93.66.145 - gwoman.com


    The rest never tuoch.

    Anyone that could help would be much appreciated.

    Thanks in advance.

    Nazart
     
  2. falko

    falko Super Moderator Howtoforge Staff

    I guess you're in a local network, with the router having the public IP address 219.93.66.145 and the local IP address 192.168.101.1. Your FC4 server must then have an IP address from the 192.168.101 network, and you must forward all needed ports (21, 22, 25, 80, 110, 443, ...) from your router to your FC4 server.

    Your DNS settings are wrong! This is the output of dig gwoman.com:

    When you tell your registrar about the DNS servers responsible for your domain you must specify DNS servers that actually hold DNS records for this domain, not just any name server you know of!
    So either you have someone manage the DNS records for your domain and tell your registrar about the name servers of this "managing person", or you run your own name servers and create the records for gwoman.com on these name servers and also tell the registrar about these name servers.
    Have a look at this thread: http://www.howtoforge.com/forums/showthread.php?t=1207
     
  3. Nazart

    Nazart New Member

    Thans for your quick reply Mr. Falko,

    "I guess you're in a local network, with the router having the public IP address 219.93.66.145 and the local IP address 192.168.101.1. "

    Yes, your guess is right. The local IP addresses are 219.93.66.X, here have
    30 PCs in the same link.

    I should amid that I'm newbie, but I right now I have to get this job done fast. I've read the thread you suggested but it take time for me to digest, sure I will go back to the thread again to learn more.

    I would really appreciate if you could guide me further on this task. What shall I do now?

    1. At FC4's GUI "Statically set IP address", do I need to chage the Fixed-IP
    to the sequence of IPs set in existing network(i.e. 219.93.66.X). or, use
    the orginal ISP given fixed-IP(i.e. 219.93.66.145 ). Does the rest of FC4
    GUI NIC settings correct??

    a. under "Statically set IP address", I've set:
    Fixed IP : 219.93.66.145
    Mask : 255.255.255.252
    D.Gateway : 192.168.101.1

    b. under "DNS", I've set :
    Hostname : gwoman.com
    Primary DNS : 202.188.0.133 (used ISP's DNS)

    c. under "Hosts", I've set
    219.93.66.145 - www.gwoman.com
    219.93.66.145 - gwoman.com

    2. The registra's interface allows me to creat/modify the name serves.
    I've created:
    ns1.gwoman.com - 219.93.66.145 (given fixed ip)
    ns2.gwoman.com - 202.188.0.133 (ISP's DNS)
    This settings has reflected on WhoIs checking.

    "...When you tell your registrar about the DNS servers responsible for your
    domain you must specify DNS servers that actually hold DNS records
    for this domain
    ..." Sorry for my imcompatence but, do you means that
    I need to set a new DNS serve on FC4 server. If were YES, kindly instruct.

    What else(steps) do I need to do, or any quick-links that could help accomplish this task fast. Kindly advise.


    Thanks
    Nazart
     
  4. falko

    falko Super Moderator Howtoforge Staff

    First, you have to get your local network sorted first. 219.93.66.X are public IP addresses, you cannot use them in a local network. Local network IP addresses are either in the 10.0.0.0 - 10.255.255.255 range, the 172.16.0.0 - 172.31.255.255 range, or the 192.168.0.0 - 192.168.255.255 range.
    So if your router has the internal IP address 192.168.101.1, then your local PCs should have IP addresses from 192.168.101.2 - 192.168.101.254.

    219.93.66.145 is your router's public IP address (your router has 2 IP addresses, one towards the internet (219.93.66.145) and one towards your local network (192.168.101.1).

    I recommend that you reconfigure your local PCs network settings first before we go any further.
     
  5. Nazart

    Nazart New Member

    Falko,

    "219.93.66.145 is your router's public IP address (your router has 2 IP addresses, one towards the internet (219.93.66.145) and one towards your local network (192.168.101.1).

    I recommend that you reconfigure your local PCs network settings first before we go any further."

    O.K, I've reconfigured local PCs network as:
    Rounter IP : 192.168.101.1
    All PC's IPs : 192.168.101.2(onward, all with 192.168.101.1 as default gatway)

    What shall I do next? please instruct.

    Shall I need to change the DNS IP ? i.e.
    ns1.gwoman.com - 219.93.66.145
    ns2.gwoman.com - 192.168.101.1
    Kindly advice.

    Now, all PC could access to outsite sites. When I type "192.168.101.1" (at any PC with XP beside FC4 PC)
    It appears the router login-page that allow us to see/configure router. If I "192.168.101.2" it appears the trial index.html that I created on FC4 PC. When I type "192.168.101.3" nothing appear. Does it tell anything?


    Thanks Mr. Falko,

    Nazart
     
    Last edited: Dec 9, 2005
  6. falko

    falko Super Moderator Howtoforge Staff

    Do you want to manage the DNS records for your domain yourself on your own DNS servers, or do you have someone else who manages the DNS records for you? BTW, ns2.gwoman.com - 192.168.101.1 will not work because noone else from the outside can reach an internal IP address like 192.168.101.1.

    I guess you have no web server running on 192.168.101.3 so that's ok.
     
  7. Nazart

    Nazart New Member

    " Do you want to manage the DNS records for your domain yourself on your
    own DNS servers, or do you have someone else who manages the DNS
    records for you? BTW, ns2.gwoman.com - 192.168.101.1 will not work
    because noone else from the outside can reach an internal IP address like
    192.168.101.1. "


    Kindly list out the steps for both (i.e. Manage my own DNS server and have
    someone else manage for us). I wish to enhance my knowledge via this trial.

    Beside that, do we need to configure anyhing on FC4's PC?

    Look like we are quite close to it.


    Thanks Falko.

    Nazart
     
    Last edited: Dec 9, 2005
  8. falko

    falko Super Moderator Howtoforge Staff

  9. Nazart

    Nazart New Member

    It seems that I might be a bit out-of-track now.

    The 2 suggestions seem not much different(quite same) to me.

    In order to solve the problem, let me list out what I've done and going to do
    so that picture would be clearer for identifying the problem.

    1st : I created 2 Name Servers via registrar's DNS interface for
    www.gwoman.com(They provide "Managed DNS" services for free.
    I just striaght the way created the ns1/2.gwoman.com with given fixed-
    IPs and list them as Primary & Secodary name servers. The WhoIs
    checkup reflects the nameservers & corresponding IPs. The registrar's
    interface DO NOT have "A" records or CName or MX facilities)

    Pri : ns1.gwoman.com - 219.93.66.145
    Sec: ns2.gwoman.com - 219.93.66.145
    (both same, with given Fixed IP. is it Correct ? )

    BTW are your ns1-ns6.hostmu.com sharing same fixed IP ? How
    many IP did you have that time??

    "I register my domains with DirectI. They also offer "Managed
    DNS". First, I registered a domain that I use for technical issues only,
    not for web sites or emails (hostmu.com). For that domain I bought
    "Managed DNS" and created the A records ns1 - ns6.hostmu.com. "

    You said "They offer Managed DNS..." but then "For that domain I
    bought
    "Manage DNS". .... Since they have offered the "Managed
    DNS" Why did you still need to "Buy" Managed DNS?? Do I still
    need to "buy" "Managed DNS" from my registrar again? or is there
    anythings else that I should have but haven't requested from
    registrar? Is there anything that I need to find out from them?

    2nd : I configured local PCs network(29 PCs with XP, one FC4 as sever that
    I'm setting and stuck at) as:
    Rounter IP : 192.168.101.1
    All PC's IPs : 192.168.101.2+onward, all with 192.168.101.1 as default
    gateway)

    3rd : Configure FC4's NIC
    a. under "Statically set IP address" I set:
    Fixed IP : 219.93.66.145
    Mask : 255.255.255.0
    D.Gateway : 192.168.101.1

    b. under "DNS", I set:
    Hostname : gwoman.com
    Primary DNS : 202.188.0.133 (used ISP's DNS)

    c. under "Hosts", I set
    219.93.66.145 - www.gwoman.com
    219.93.66.145 - gwoman.com

    4th. Make sure the Apache is up and the trial page(index.html) appear as
    expected.

    Althought all these have been done but the problem still remain the same, that's:
    Under the FC4 PC's FireFox URL, when I type "localhost"
    or "www.gwowam.com" or "gwoman.com" or "219.93.66.145" the trial
    index.html appear as expected. However,
    I can't see expected index.html trial page at other PC(other than the
    FC4 server's PC). The error message is "Can't find the server...".

    Above 4 steps is the "Pattern" I repeat several times but fialed. Kindly advise
    which areas was the cause & what shall I do to get them right.

    Thanks Falko.

    Thanks for your time.

    I've domain under Yahoo which haven't been used. I notice that their
    Interface provides "A" , MX, CNAME records, which seem to be quite advance. If current domain proved to be so haaaaard to set up, do you think
    use domain under yahoo would be help. As I need to get a webserver up fast.

    Please advise.

    Regards,
    Nazart
     
    Last edited: Dec 10, 2005
  10. falko

    falko Super Moderator Howtoforge Staff

    No, they are totally different. In one case, you don't have to care about setting up DNS servers etc. at all, in the other case you run your own DNS servers and therefore have full control which you haven't in the first case.


    You can do it like that, though it doesn't make sense to have primary and secondary DNS on the same machine. The sense of having a secondary DNS is that if the primary fails the secondary takes over. If both are on the same machine and the machine fails, then - bang...
    Now if you register a domain and specify that ns1.gwoman.com and ns2.gwoman.com should be the authoritative name servers for the new domain, then you have to create the DNS records on ns1.gwoman.com and ns2.gwoman.com. If these are your own name servers, then it's no problem, if they aren't, then you must have someone else create the records, or you do it through a web interface that this someone gave to you ("Managed DNS").

    They use 6 different IP addresses.

    They offer it, but not for free, that's why I have to buy it.

    :eek: The IP address must be in the 192.168.101.x range, like all your other PCs!!! (I've told you before...)
     
  11. Nazart

    Nazart New Member

    So I assume that it work.

     
  12. falko

    falko Super Moderator Howtoforge Staff

    Yes, it will work, but when you register new domains and specify ns1.gwoman.com and ns2.gwoman.com as the authoritative name servers for the new domain, you have to create the DNS records on 219.93.66.145 (not on your ISPConfig system!).
     
  13. Nazart

    Nazart New Member

    O.K.

    Now, I've modified the NIC's Fixed to 192.168.101.200(unique in the range) as suggested. But the problem still remain the same(outside XP's internet can't access to
    this FC4's Apache index.html trial page " What could be wrong? (Please refer to
    ealier thread about my configurations)

    (BTW, Books suggested that the NIC's IP address should put the Fixed-IP(219.93.66.145). Nevertheless
    I've changed to 192.168.101.200. as what you suggested, but then each time whenever type www.gwoman.com on URL, it promt me for rounter's password, if put admin, it go to page for router configuration, until now.

    I choose stick to what you suggested. as I believe in you. Is there anything wrong in other configuration? or the router site need to do something?)

    No matter how difficult it will be, I'll get this task up.

    Please advise

    Thanks
     
  14. falko

    falko Super Moderator Howtoforge Staff

    Ok, but your FC4 server should now be able to connect to the internet, right?
    When you type http://192.168.101.200 in a browser's address bar, you should see the index page...

    Yes, for servers connected directly to the internet. Yours is in a local network behind a router...

    Did you forward the needed ports (e.g. 80 for http) from your router to your FC4 box?
    Also, there don't seem to be any DNS records for www.gwoman.com:

     
  15. Nazart

    Nazart New Member

    Yes,

    How?

    What are the possibilities? Check the dns from dnsstuff.com also show no A record from gwoman.com. Anyway to make it right??

    I've a domain name under Yahoo. Would that be good to use Yahoo's domain(they provide facilites to create "A","CNAME" and "MX" record") and discard gwoman.com(there is no "A" record facilities at registrar interface.)
    if this proved to be viable. Please advise.

    Thanks
     
    Last edited: Dec 11, 2005
  16. falko

    falko Super Moderator Howtoforge Staff

    Your router should have a web interface where you can configure port forwarding.



    If you've bought "Managed DNS" services from dnsstuff.com (i don't know if they offer something like that...), you should have a web interface from them where you can create all records.

    Basically, you can do so. Is it a "normal" domain like gwoman.com, or just a sub-domain of some other domain?
     
  17. Nazart

    Nazart New Member

    O.K. I've created a port-forwarding record from 192.168.101.1 with the following info:
    ID Public Port Private Port Port Type Host IP Address
    1 80 80 TCP 219.93.66.145

    The overall router status (check from192.168.101.1 ) is:
    WAN Statistic:
    IP Address Subnet Mask MAC Address
    219.93.66.145 255.255.255.0 00:30:0A:29:2A:16

    LAN Statistic:
    Number of computers connected to the DHCP server: 0

    --- Is the router's configuration above shows correct?


    "If you've bought "Managed DNS" services from dnsstuff.com ..."
    You keep mentioning about "buy" DNS but In my cencept the registrar(www.eviservers.com
    not dnsstuff.com)'s interface has already provided us to create ns1/2.gwoman.com and
    I've already created this 2 dns with mentioned IP that both sharing 219.93.66.145 which
    you have metioned "yes it work". But then still having problem. what should I do?

    The yahoo's domain is a normal domain www.harisen.com. I'm trying to create "A" record and change the name-server but failed. I've contacted yahoo people for help and waiting for their reply.

    Is the NIC configuration correct??(kindly refer to ealier threads)

    Thanks falko
     
    Last edited: Dec 12, 2005
  18. falko

    falko Super Moderator Howtoforge Staff

    You have to forward port 80 from 192.168.101.1 to 192.168.101.200, not to 219.93.66.145!



    If you have internet access on your FC4 box and can connect ot it from the other PC's in your LAN, then it's ok.
     
  19. Nazart

    Nazart New Member

    O.k. I've forward port 80 to 192.168.101.200.

    Now, if typed www.gwoman.com at FC4's PC, it prompts for password to rounter configuration page. If typed 192.168.101.200, the expected index.html trial page appear.

    At other PCs with XP in the same link. If typed www.gwoman.com "can't find the page" appear. If type 192.168.101.200, index.html page appear.

    I've email to gwoman.com's registrat(ev1servers.com) to find out why
    "dig www.gwoman.com" show no ANSWER SECTION. Still waiting for their reply.http://www.dnsstuff.com/tools/lookup.ch?name=gwoman.com&type=A
    shows no "A" record exist.

    Please see what you could help at the same time.

    Thanks Falko
     
    Last edited: Dec 12, 2005
  20. falko

    falko Super Moderator Howtoforge Staff

    I guess you have www.gwoman.com and your router's public IP address in the /etc/hosts file on your FC4 box. Normally it should behave like your other PC's and show a "can't find page" message because www.gwoman.com doesn't exist in DNS.

    Please post /etc/hosts here.
     

Share This Page