Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-19-2006, 08:23 PM
|
#1
|
LQ Newbie
Registered: Mar 2006
Posts: 13
Rep:
|
webhosting help to a newbie
Hello every body.. I am a freshmen in linux and i do not know muvh about it... I installed linux as i wanted to host my own website at my home and not buy any hosting services .. I have registered my self a domain and have high speed cable at home ... I am using linux suse 10.0 OSS and need help to configure it... every thing http dns and everything else needed to run a personnel website... Thanks Taral
|
|
|
03-19-2006, 08:32 PM
|
#2
|
Member
Registered: Jan 2005
Location: MA
Distribution: Ubuntu 7.10
Posts: 558
Rep:
|
well first of all you probably have a dynamic IP address which will make it difficult to host a website. You could either pay your providor extra or use no-ip to make it static. Then you also need to get software to make a web server. The most common software is apache. That should be enough tostart with. You can other protocals like ftp and smtp and pop3 later
|
|
|
03-20-2006, 05:18 AM
|
#3
|
LQ Newbie
Registered: Mar 2006
Posts: 13
Original Poster
Rep:
|
thanks for replying... but i do have a static ip... but all i what i dont get is to how to configure my DNS HTTP and FTP server in suse .. i have installed everything ... PHP MYSQL... etc but dont know how to get started with and Suse is difficult to deal with....
|
|
|
03-20-2006, 05:51 AM
|
#4
|
Senior Member
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163
Rep:
|
This might be considered kinda off-topic --
>not buy any hosting services
http://pages.google.com
|
|
|
03-20-2006, 05:59 AM
|
#5
|
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515
Rep:
|
You say that you have everything installed.
MySql should require few configuration changes. Just create the databases you'll need.
Apache configuration for httpd is fairly straight-forward if you're running just one site. Have you looked at the docs and tutorials on apache.org?
Setting up FTP is a different story. Can you tell us what kind of FTP server you have? VsFtp? ProFtp? Something else?
There are some docs on how to set up a LAMP machine (Linux Apache MySql Php/Perl/Python). Just google for them or search on this forum.
As for configuring DNS. You'll need to create some files that define your DNS "zones". You'll probably need just one zone for starters. Your ISP's DNS will have an entry that contains what IP address your nameserver has. The machine that has this IP should have it's own DNS server running.
In your DNS config, you'll need:
-"A" records for all your hosts;
-"CNAME" recors for hostname aliases;
-"MX" records for mail servers;
-etc
Check out:
http://www.zytrax.com/books/dns/ch4/
http://www.tldp.org/LDP/lame/LAME/li...me-server.html
or just Google to find some DNS config examples...
|
|
|
03-20-2006, 01:14 PM
|
#6
|
LQ Newbie
Registered: Mar 2006
Posts: 13
Original Poster
Rep:
|
NO offense but sir i have read articles on this forum which help you out to setup webhosting and clearly stating that get all things for free and than make money from them.... Mine is a legimate question as using linux i can host my personnal website at home rather than paying some one.... I m really sorry if u found it off-topic...
|
|
|
03-20-2006, 02:07 PM
|
#7
|
LQ Newbie
Registered: Mar 2006
Posts: 13
Original Poster
Rep:
|
Hey tim i have looked up docs and franky speaking dont get any idea about what it is talking... i know that it might sound a bit weird for you ... but i really don tget any thing... when i try to open my page it shows connection refused do u know how can i resolve this?
|
|
|
03-20-2006, 09:10 PM
|
#8
|
Senior Member
Registered: Sep 2003
Posts: 3,171
Rep:
|
Given the level of knowledge that you have displayed so far, I would recommend that you NOT host your own web server.
A box that is connected to the internet will come under unceasing attack, and hardening and securing the box is very much a non-trivial job, requiring constant vigilance and an ability to quickly respond when evidence of an exploit occurs.
This requires a substantial knowledge of Linux, Apache, all other servers that will be available, and all configuration issues. It is not a trivial problem and it does take time to learn.
Should you deploy an insecure box, the most likely scenario is that it will be taken over by a hacker who will use it for his own purposes; kiddie porn, phishing, spamming, or whatever.
You might deploy a server on your own lan and use it as a learning tool until you are absolutely confident that you know everthing there is to know about it before taking it onto the internet.
Myself, I pay for site hosting. I have a number of sites of my own, I have my own ASP service, with my own servers deployed at a server farm, and I do development work for ISPs. But in spite of that, I let others host my websites.
Why? Because I can buy hosting for much less than it would cost me to maintain my own web server.
Last edited by jiml8; 03-20-2006 at 09:13 PM.
|
|
|
03-21-2006, 02:04 AM
|
#9
|
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515
Rep:
|
taral, jiml8 has a point there. Hosting a web site on the internet isn't as straightforward as it looks.
As for the connection refused message, I recommend checking if traffic on port 80 (http) is blocked by a firewall and if there is an Apache httpd daemon listening on port 80 of the network interface you're connecting to.
What is the URL you were using? Does it contain a hostname or an IP address? Or does it use the localhost (127.0.0.1) interface, ie for testing?
|
|
|
03-21-2006, 12:23 PM
|
#10
|
LQ Newbie
Registered: Mar 2006
Posts: 13
Original Poster
Rep:
|
127.0.0.1 works fine but the error is when i try to open my ip address or try to forward my domain to my ip address i get the message that the connection is refused...
|
|
|
03-22-2006, 02:33 AM
|
#11
|
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515
Rep:
|
So you can visit your website via the 127.0.0.1 (localhost) interface, but not your other IP address.
Then httpd is simply listening to port 80 on the localhost interface, instead of to port 80 on the network
interface with your other IP.
The "localhost" interface is different for each machine and can thus only be accessed on the machine itself.
|
|
|
03-23-2006, 05:25 AM
|
#12
|
LQ Newbie
Registered: Mar 2006
Posts: 13
Original Poster
Rep:
|
so is their any solution to it?
|
|
|
03-23-2006, 06:24 AM
|
#13
|
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515
Rep:
|
If you want to access the webpage via your hostname or IP, instead of hostname "localhost" or IP "127.0.0.1",
then you need to configure httpd to do so.
In httpd.conf, change the "Listen" directive as indicated in the file comments.
If you have virtual hosts, they can bind (listen) to specific IP addresses too, so you'll need to change their definitions as well.
|
|
|
03-23-2006, 05:39 PM
|
#14
|
LQ Newbie
Registered: Nov 2005
Location: My bedroom
Distribution: Slackware
Posts: 24
Rep:
|
check out some articles on
BIND
the free dns nameserver that should have came with your linux distro
this is one site with bind documentation
http://www.isc.org/index.pl?/sw/bind/
at the bottom of the page look at BIND 9.3 Admin Reference Manual
i know there are others, several books, and googleing will provide other documentation
making dns work is an incredbly complex task, and will require alot of reading, unfortunatly
good luck from me
james
Last edited by JamesKelson; 03-23-2006 at 05:40 PM.
|
|
|
03-24-2006, 05:15 AM
|
#15
|
LQ Newbie
Registered: Mar 2006
Posts: 13
Original Poster
Rep:
|
thanks.... i will the documentation....
|
|
|
All times are GMT -5. The time now is 04:14 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|