LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-26-2007, 10:49 PM   #1
Broady
LQ Newbie
 
Registered: May 2007
Location: Australia
Distribution: Fedora 6
Posts: 8

Rep: Reputation: 0
Question Adding 1st website to Fedora Core 6


Hi all,
I have built a Fedora Core 6 LAMP Server and to date everything has been smooth sailing. In my home network I run a Windows XP(Main development machine) box and a Linux box(Server). My router is a DLink DSL-G604T. I have a static IP address from my ISP. I have set up the router to route port 80 the the Linux box. I can access the Fedora Core Test Page inside my home network by typing http://10.1.1.2 from my Windows box.

My goal is. I have registered a domain name (e.g domainname.com). I want to host that 1 domain name from the Linux box.

At this stage I have 2 user accounts on the Linux box:
1. The main administer
2. A user named Jason

I have my website ready to upload to the Linux box. A few questions I have are:
1. Which account should I log into to upload the webiste?

2. When it comes to binding domainname.com to my static IP address, I get really confused. I have Webmin installed. What is the best method for binding the domain name?

3. When using nameservers for the binding. What IP address' should I use. I have read that I can use my ISP as a nameserver or can use the Linux box as a DNS server. Currently for my nameserver I use the following.
nameserver 10.1.1.1
nameserver 4.2.2.1
Currently when I purchased my domain name, I purchased it from Godaddy. When all is set up what IP address or domain names do I change the nameservers in the Godaddy control panel too. Currently the domain is parked with the Godaddy name servers.
(This whole step is what really confuses me).

The DLink router has the IP address of 10.1.1.1. The Linux box the Ip address of 10.1.1.2.

4. Where do I upload my website too, so that if someone outside my network enters http://www.domainname.com that will shown my website?

I know I am asking a lot however any advise or a push in the right direction would be greatly appreciated. I have spent the last few weeks reading and reading and I must be looking to deep into it, because most times I can pick up this stuff with no problems.
A step by step guide would be awesome.

Once again
Thank You
Jason
 
Old 05-30-2007, 05:24 PM   #2
rdgreenlaw
Member
 
Registered: May 2007
Distribution: Ubuntu 14.04 LTS
Posts: 59

Rep: Reputation: 16
I did this a while ago, and had similar questions. First, when you registered your domain name you were given a user name and password for GoDaddy. You will need this to point your domain name domain.com to your static address that was supplied to you from your ISP. You may need to look at the help files on GoDaddy's web site or call their technical support number for specific instructions. This will point the internet usage of your domain name to your internal network. You will then need to configure your router to pass any traffic to port 80 (and other ports if desired) to your server. This traffic will need to be routed to the server's ip address. This is easiest if your server is assigned an IP address that is not within the router's DHCP assigned list.

Your web files should be located in /var/www/html/ and any CGI files located within /var/www/cgi (you may not have any .cgi files)

Your network will look something like this:

www.domain.com --> 10.10.10.10 (ISP assigned ip address)

10.10.10.10 is the IP address of your router

Your router will assign adresses to the other equipment on your network

192.168.0.1 --> first PC
192.168.0.2 --> second PC
...
192.168.0.20 --> fiftieth PC

You will want a static IP address on your web server. I'll assume 192.168.0.100

point your router's DMZ (demilitarized zone) to 192.168.0.100 or point port 80 and others to your server's ip address.

Change your server's IP address to match the one you defined on the router. You will find it in /etc/sysconfig/networking/devices. Edit the file ifcfg-eth0 and set the static IP address. You can also set this from within the GUI (System -> Administration - Network).

Note IP addresses that start with 10. can not be routed through some devices (incoming traffic can't be routed to a computer with 10.?.?.? addresses so you may need to change these to more standard addresses. (You'll need to try it to see how it works on your system.) I use 192.168.x.y on my internal network.
 
Old 05-30-2007, 05:30 PM   #3
wendea
Member
 
Registered: Mar 2007
Distribution: Fedora
Posts: 81

Rep: Reputation: 15
I just did a lamp server for my college course. If you want to make it easy make it so in your /etc/hosts file you have you lamp server as 10.0.0.x or whatever you want for your ip. After that use a web fowarder like zoneedit.com and make it so your LAMP server shows up in there. Then you can just add on for example:

moodle.example.com 10.0.0.2
mambo.example.com 10.0.0.3

and so forth. Then just make it a virtual host in your php.ini file. And presto it should work. As for the user question I would use one user which is a superuser. To simplify things. if you want LAMP server documentation you can get it off my site at http://wendea.ca/documentation.html and that is my documentation that I used for mine.

cheers!
 
Old 03-25-2008, 07:53 AM   #4
bluetxxth
LQ Newbie
 
Registered: Sep 2007
Posts: 16

Rep: Reputation: 0
necessary to have a static IP?

Hi all,

Is it absolutely necessary to have a static IP... will it not work pointing it to a url for example www.xxx.no-ip.org ??/

Thnx,

blue
 
  


Reply

Tags
dns, hosting, website


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
using fedora core 2 as desktop server to host website legalizeit Linux - General 1 11-16-2006 04:41 PM
How Do I Connect To Internet Using Fedora Core 5?? @ Total 1st Timer OwenMelbz Linux - Networking 5 09-24-2006 03:33 PM
Adding a new hard drive to Fedora Core yong_sa Fedora 1 07-17-2004 05:27 PM


All times are GMT -5. The time now is 05:40 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration