Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I want to set up a web server using apache. Im using redhat 9 and apache is installed and working. I have already bought a domain name and have been working on the website using quanta plus. After reading a few threads, I know I have to edit the http.conf file. This is a probably a stupid questions, but how do I go about doing this? Do I have to use emac or another similar program? If so can someone give me the steps to follow of point me to some documents that I can read. thanks in advance for your advise
You only need to edit a couple of things to get your server up and running. There are also hundreds of articles/tutorials on the web for getting apache running. My advice: have a google for "apache + tutorial"
If you have a specific problem then you can ask here.
Yes, with linux its really easy to do this. If apache is installed, you can do "rcapache2 start" and the server starts. It answers at locahost:80. To stop it, I issue "rcapache2 stop". "rc..." stands for resource control, I guess.
If you have any firewall running you have to set it to leave port 80 open, in order to people have access to your server.
i've done some reading but there is alot of information regarding this topic. i still dont know how to edit the htpp.config file. here is what i've done so far. i tried to configure apache using the gui. went to Start->Systems Settings-->Server Settings-->HTTP Server, entered my password. Under Main
Server Name: <i gave it a name>
Webmaster email:<my personal email for now>
Available Addresses: <the domain name i bought:80>
PID File: /var/run/httpd.pid
Core Dump Directory: /etc/httpd/
Im having problems when i try to ping my domain name. I get the following message:
"domainname could not be found". Can someone tell me what im doing wrong and/or how to fix it. Also, i have configured my firewall to allow HTPP it that makes any difference. Any advise will be appreciated
Available addressess probably should have an IP address, not a host name. In any case, I'd have just left that particular setting at the default -- it's probably correct. Anyhow, you're problem with ping is unrelated to the Apache Web server. Have you set up DNS (name resolution) for your domain yet? DNS maps a hostname like www.foo.com to a numeric IP address. Obviously, if this is not set up correctly, nobody will be able to use www.whatever.com to connect to your server. Setting up DNS varies, but generally you would just sign on with a DNS service (I believe that there are several free DNS services out there, but as I have my own DNS servers. I'm not familiar with any of them -- google should help here) and then you tell whoever you got your domain from what the authratative name servers are (usually this is done via some control panel you can sign on and access, contact the firm you got your domain from if you're having trouble).
thanks for all the tips. I did not have a DNS server set up. redhat comes with a DNS server so can i use it? also can anyone tell me what should i put in the Primary Name Server(SOA)
tab??any advise is appreciated
You can run you're own authoratative name server, but I wouldn't recommend it. First off, every domain needs not one but two separate name servers for redundancy. Furthermore, each name server has to have a permanent static public IP address (so people always know where to look up authoratative information about a particular domain). Most DSL and Cable companies assign IP addresses dynamically, so machines on their networks cannot be name servers. Configuring DNS properly is a non-trivial task (believe me, I've f'ed things up with t before) above and beyond all that, so you're best off doing as I suggested and finding someone else to handle the DNS for your domain, unless you really feel some pressing effort and want to expend the energy setting it up yourself.
Now it is easy to set up DNS locally as a caching-only nameserver (that is it looks up domains and stores their information). You do not need a static public IP address for this. But my understanding is that you need an authoratative server for your domain, not a server to look up www.linuxquestions.org for instance.
As I said, I have my own DNS setup, so I'm not too familiar with this, but I've heard good things about ZoneEdit -- http://www.zoneedit.com/ so you may want to give them a try. Googling for "free dns server" provides a lot of results, so you may want to search through that. Before you do so, check and make sure that the people you registered your domain service don't offer something like this for free.
After reading some more, I still have not been able to get apache up running. Here is what I've done so far. I have set a DNS account with zoneedit.com. Edited the etc/resolv.config file to include the IP of a DNS server. I have edited the httpd.conf file to include the same ip address of the DNS server(I dont know if this is right). I have placed my html files in the var/www/html directory. Everytime I try to ping www.mydomain.com , I get the following two messages
If I type mydomain.com==>connection refused by domain.com
Obviously I'm not doing something right. Can someone please tell me what are the lines that Im supposed to edit in the httpd.confi file ? and anything else that needs to be changed in order to get apache up and running. Thanks in advance for your help
First thing to understand is that Web and DNS are totally separate services. Your Web server doesn't need to know what your DNS server is. Your DNS server does, however, need to know where your Web server is (so whenever somebody looks up www.mydomain.com it knows where to tell them to go). So there are a couple of different issues here, firstly whether or not your DNS is set up right and secondly whether or not your Web server is configured correctly. So let's tackle each problem in turn:
First, the DNS setup: What's your current IP address? Whatever it is www.mydomain.com should point to it. Try nslookup www.mydomain.com from Windows or Linux (a ping also reports the IP address) and see if it resolves correctly to your IP address. I suppose I should've realized their, being on DSL, your IP is liable to change, so you might want to look into a dynamic DNS service (hopefully Zoneedit has something like that) that automatically updates your IP in the nameserver configuration when it changes. But that's a bit in the future, the point right now is to see whether www.mydomain.com is resolving correctly.
Secondly: your Web server configuration. Can you get to your Web server by IP address from your internal LAN (if you have one) and from anywhere else on the Internet? Try connecting to your Web server by IP address from a couple different places (both on and off your LAN -- again, if you have a LAN) and see if things work. If so, the problem is just with the name resolution and solving that will solve your problem.