?
Solved

self-host web site

Posted on 2003-03-15
9
Medium Priority
?
346 Views
Last Modified: 2013-12-15
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
Comment
Question by:drag0n
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 2

Expert Comment

by:EmbeddedMind
ID: 8147833
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
 
LVL 1

Author Comment

by:drag0n
ID: 8148598
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
 
LVL 2

Accepted Solution

by:
EmbeddedMind earned 140 total points
ID: 8148738
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
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 
LVL 1

Author Comment

by:drag0n
ID: 8148820
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
 
LVL 2

Expert Comment

by:EmbeddedMind
ID: 8148912
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
 
LVL 1

Author Comment

by:drag0n
ID: 8148956
SO WebMIN would pretty much get me up and running?
0
 
LVL 2

Expert Comment

by:EmbeddedMind
ID: 8148996
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
 
LVL 1

Author Comment

by:drag0n
ID: 8152978
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
 
LVL 1

Author Comment

by:drag0n
ID: 8595113
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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month9 days, 17 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question