Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 366
  • Last Modified:

self-host web site

Hi, I am a total beginner to Linux Red Hat 7.0, but I really wanted to host my own website without any 3rd party services such as free DNS Servers and stuff. I wanted to host my website, dns servers and anything else to run a website. I have a static ip and domain names. What else do I need? Do I need two IPS one for Primary and one for secondary? DO I need a domain just for name servers? What would be the best documention for Setting up a whole webserver and DNS server on a linux system, that you would reccommand? Thanks in advanced.
0
drag0n
Asked:
drag0n
  • 5
  • 4
1 Solution
 
EmbeddedMindCommented:
Hello, you only really need one IP address for this situation. I would recommend using either Redhat 7.3 or 8.0, in your case. Really, you don't absolutely have to have DNS running on your box but RH will install a DNS server by default anyway BIND's 'named' (named, is actaully the name of the DNS software). The webserver you will be using is Apache, and the best documentation, will be found at

http://www.apache.org

Also, if you will be setting up a Mail server, to have "email@yourdomain.com" then you will need to update the DNS records to include an MX record on whoever is hosting your main DNS records. This is usually your registrar like register.com or easydns.com or whoever you're using. For the mail server you have sever options, mainly three programs Sendmail, qmail, and postfix. RH will install Sendmail by default. Well, hope this was helpful to you.
*Embedded
0
 
drag0nAuthor Commented:
Ok, so say, I let someone else host my DNS, but my problem is that, Apache only looks for port 80 and if I register for DNS with my register, they want me to give them my IP, i dont think they will accept it with a :80.
Is sendmail free? How do I start all these progrmas(Apache, Sendmail, BIND(I wont use this anymore))
?
Also, Where can I find actually infomation about how to set up stuff for Linux using the X Window system(graphical) Ive tried to find info about how to actually get Apache working with my domain. They all give me all this compiling stuff, which I dont understand =(. So can I just leave out Secondary DNS when I update DNS Records, or do I enter the same DNS name? I know these are alot of questions for just 30 ponts, but I promise to raise this question points as long as I have points left =).
Now Ive got DNS out of my way, Im trying to find out how to Point my domain to my Apache server using my domain registers DNS system(they ask for IP of server)
0
 
EmbeddedMindCommented:
Well, ok here's the deal. Someone with top-level name servers is going to HAVE to host your DNS. You can have DNS for in house stuff or for having multiple servers, like a www1.yourdomain.com, or whatever. Secondly, well you want Apache to use port80, however you can change that behaviour. The DNS doesn't care at all what ports are being listened to, not one bit. The DNS simply points to your ip-address, without regard to a port. So, I mean someone could just as easily ssh to www.yourdomain.com:22 as they could browse to the website on www.yourdomain.com:80. Another thing to realize is that port80 is the default http port, this should be causing you no worries whatsoever (there is no problem=). If you used anything but port 80 for your webserver, which Apache can do without any problem, then I mean people who want to go to your site would have to know the port number.

As for Sendmail, yes its free and it comes with Redhat, actaully on RH8.0 it likes to install even if you tell it not to =).
Here, you don't have to compile anything if you don't want to, what I suggest in your case is to do this. Download or buy RH8.0 and install the "Full Server Install." Then go to
http://www.webmin.com
Here you will download Webmin, it will have some pretty easy instructions to run it. What this is is a graphical tool to administer many things on your linux box. Things like Sendmail, Apache, your Startup Behaviour, Samba (for connecting to win boxes), just about anything via a web browser. So when you install this you can configure stuff by connecting to 'localhost:10000' as it listens on that port. The website will have the details.

Ok, as far as the IP addressing and DNS is concerned you need to do this. Configure your Registrar's DNS servers to point to the static IP you bought (ports do no matter). And this is all you have to do. Now, are you behind a router, like a linksys, caymen, or whatever router? If so, then you need to forward Port80 to your LinuxBox (your linux box needs a private static IP too, like 192.168.1.50 or whatever, so your router can forward the web requests).

Hope this has been helpful.
*Embedded
0
Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

 
drag0nAuthor Commented:
Hi, thanks for responding. So, I dont have to give my register a port number when I register DNS? What do I do for secondary? Well, im going to download webmin, thanks for that! Btw, Im behind a Belkin Router, I can set up port forwarding. SO I should forward all port 80 traffic to the internal ip of linux box which is also to be configured with port 80? Thanks for all the help!
0
 
EmbeddedMindCommented:
Nope, don't have to give them a port number, its simply ip-address based -not socket=) Now, you really don't need any kind of 'secondary' they'll take care of all your DNS. Belkin router is fine, just setup port-forwarding and after your DNS updates in about 24 hours then you should have a site up and running =)
*Embedded
0
 
drag0nAuthor Commented:
SO WebMIN would pretty much get me up and running?
0
 
EmbeddedMindCommented:
Yep, Webmin will pretty much get you going. If Apache is already installed and running then all you need to do is point the DocumentRoot to where your web pages are. Make sure your default web page is called index.html. For your mail, Webmin can help you get Sendmail going, if you run into problems with it you may need to read some of the docs for it, but it is *well* documented. Though, for your website, once you get your pages in the DocumentRoot as soon as your DNS name starts resolving people should start to be able to access your website. Hope this has helped!
*Embedded
0
 
drag0nAuthor Commented:
Sorry, but I have another question: On webmin, I cant find the place to edit the PHP Configs in the Apache module. ALso I installed MySQL but, it still tells me it cant find mysql. Im about to just give up and move to hosting PHP and MYSQL on Windows XP
0
 
drag0nAuthor Commented:
Can somebody help me with postfix and IMAP(COurier) RIght now I have PostFIx all cnfigured but I still dot unerstnd how hosting companies are able to do that header thing like right now I create a system user everytime I create a new e-mail accoun li domainname.username an Irestrict them from telnet and shell, but they stilllbeong to the server default domain so I dont know how I can send an e-mail from user1.mydomain and make it look at user1@mydomain.com instead of user1@defaultserverdomain.com?  Is there a postfix admin that doesnt use mysql tables because I am using Berkeley db right now that can add vdomains for me and maybe make the directories so its a little moe organized or maybe someone can explain it to me, feel free to e-mail me:
hennychenny@yahoo.com
Any help is appreciated!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now