Adding 1st website to Fedora Core 6
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.
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.
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.
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:
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.
necessary to have a static IP?
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 ??/
|All times are GMT -5. The time now is 04:12 AM.|