LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Using Fedora as a Server, DNS (https://www.linuxquestions.org/questions/linux-networking-3/using-fedora-as-a-server-dns-210215/)

aarond 07-27-2004 09:27 AM

Using Fedora as a Server, DNS
 
Hello,

I have the Fedora Core installed on my PC. I would like to host a web-site from my machine.
How do I go about this? I have used Mac OSX 's Apache server before and have some experience from that, with Mac OSX I also had to allow services in System Preferences > Sharing . Is that even similar to what I will have to do w/ the Fedora Core? Please any input would help. . .

Thanks in advance ,

Aaron

PS: Can anyone tell me a bit about the DNS server I saw listed when I installed Fedora. Would this feature allow me to no longer pay "Godaddy" for my hosting and to just keep the files on my Linux box? What I mean is could the domain that I buy off them be pointed at my computer? What would my Nameserver be then?

ToniT 07-27-2004 09:30 AM

DNS=Domain Name Server = Nameserver.

Is apache installed? If so, try going to http://localhost/ and see if you get to somewhere. The documentroot is probably in /var/www/.

aarond 07-27-2004 09:40 AM

reply
 
In my browser I tried both:

http://localhost/

http://localhost/ var/www/

and got the message " the connection was refused " so I take it this means apache is off on my box? How do I turn the server on on a Linux box?

Thanks,

Aaron

ToniT 07-27-2004 09:43 AM

If apache is installed, then
/etc/init.d/apache start
If not, then install it first.

aarond 07-27-2004 09:48 AM

reply
 
It is not in there I'll will have to install it, my Mac OS X came with apache installed and the copy of Fedora was one that came out of a very recent printing of a "Wiley" book on Fedora Core so I had thought that it would have been installed w/ it.

Thanks for your help . . .

Aaron

RHELL 07-27-2004 02:07 PM

To see if package apache is installed:
'rpm -q apache'
To see if daemon httpd is running:
'chkconfig --list httpd'
To start daemon:
'service httpd start'
To start daemon at boot(for runlevels 3,4,5 in this case)
'chkconfig --levels 345 httpd on'

The default DNS nameserver for Fedora is called 'bind', it's daemon is called 'named'.

Neither will do much without configuration, but that's another kettle of fish.


All times are GMT -5. The time now is 01:36 AM.