tinfanide Posted October 22, 2011 Share Posted October 22, 2011 I've installed the whole package of XAMPP which includes ApacheMySQLFileZilla But is it the bundle that I can really put things on an online FTP (server) and host a website?Coz now I seem to be using only the localhost and even for the setting of the FTP, I have to choose the XAMPP root folder.Is it the right way to host a site like other normal site developers do? Please help. I'm very confused with the concept of running a server... Link to comment Share on other sites More sharing options...
Synook Posted October 22, 2011 Share Posted October 22, 2011 If you can view your website using the loopback interface, then your server is working (and you are "hosting" your website, on the computer the server is running on). If you want other people to be able to view the website, you have to give them your IP address. If you are behind a NAT router, then you will also need to forward the port the server is using. Note that people will view your site over HTTP, not FTP. Most people just buy remote hosting with a web hosting company, though. Link to comment Share on other sites More sharing options...
tinfanide Posted October 22, 2011 Author Share Posted October 22, 2011 Yeah. The point is thatAre all the websites now using remote hosting?The server on the web, not on the localhost? Now I am using the localhost FTP, serverSo if people need to view my pageDo I have to give them like this http://myIPaddress/index.html/ And I put the index.html file in the FileZilla server? Link to comment Share on other sites More sharing options...
boen_robot Posted October 22, 2011 Share Posted October 22, 2011 You could always buy your own server computer, and so "remote" will turn into "local" Are all the websites now using remote hosting?All but those who buy their own server computers.The server on the web, not on the localhost?As long as your server has Internet connection, it's always on both... "localhost" is a name which always refers to "this computer". When your server has Internet connection, you can still access your server from your server with "localhost", but you can also access your server from another computer with your IP address. Using the IP address as opposed to "localhost" is like saying "that computer" as opposed to localhost's "this computer".So if people need to view my pageDo I have to give them like thishttp://myIPaddress/index.html/You can configure your web server to handle anything beyond "myIPaddress" in any way you like. By default, "index.html" is treated as a "default document", i.e. any time a folder is accessed, a file by the name of "index.html" from that folder will be given, if present. Therefore, people could access your site with onlyhttp://myIPaddress/Also, if you're on the computer itself, you don't need to use FTP. That is only required if you need to transfer a file from another computer to your server. Link to comment Share on other sites More sharing options...
Don E Posted October 22, 2011 Share Posted October 22, 2011 Boen, In order for him to have a domain name for his home hosting site, he will need to get a domain name registered right? But then after that, how does he go about configuring his server to see the domain name instead of the ipaddress so that when people type in the domain name in the browser, it goes to his site... ? Does that have to do with a domain name server (dns) and if so, what would he have to do for that? Thanks. Link to comment Share on other sites More sharing options...
tinfanide Posted October 23, 2011 Author Share Posted October 23, 2011 Thanks for your detailed explanation, boen..Yes I also have the same question as Don E had. The domain name problem...Long heard that companies need to pay much for an easy-to-remember domain name.How about individuals who would like to starting hosting their own sites?Google Sites seem to be free and easy to use. But it doesn't allow a complete layout design andlacks some server management chances. Cos now I'm looking for some free webhosting sites which give me, say, 50mb or less online space for the server and a domain name so that I can practise some server-side languages instead of just playing with Javascript or CSS all the time on the localhost computer. Link to comment Share on other sites More sharing options...
Don E Posted October 23, 2011 Share Posted October 23, 2011 Tin, you can host the site from your own house. That is what he meant by buying your own server. A server is basically a computer, like the one you're on now, but actual servers are specifically designed etc to be a "server". The only think you will have to get is registering your domain name and then figuring out how to point that domain name to your server at home. I think that has to do with DNS, which is why I asked the questions above. Also, you might have to contact your ISP(company you get internet from) and might have to change or add to your service that you are hosting some sites using their connection. This is so because some ISP's don't allow you to use their connection to host your own sites. You might have to get that specific plan from them if they offer it. If you do it anyway without getting that plan, this might violate their Terms of Service(ToS) and cancel your service. How can they find out you might ask? Well, if they see your IP address is using a lot of bandwidth, that's probably one way of them finding out. But that's if your site is very popular. My neighbor hosted his information website(info about his little business) from his house using a ancient (actual)server and connection from his ISP, but he has the plan where it's for that. Link to comment Share on other sites More sharing options...
tinfanide Posted October 23, 2011 Author Share Posted October 23, 2011 So hosting a site requires: A server (like my computer for storing webpages)?But in this case, if my site is to be open for 24hours, I have to turn on my computer with Internet access for 24 hours? Domain Name (DNS)? people can type the domain name (e.g. www.mysite.) instead of myIPAddress?ISP (for the bandwidth issue) because hosting a stie requires lot more bandwidth than just visiting other sites as a user? Am I getting it right? Link to comment Share on other sites More sharing options...
boen_robot Posted October 23, 2011 Share Posted October 23, 2011 A server (like my computer for storing webpages)?But in this case, if my site is to be open for 24hours, I have to turn on my computer with Internet access for 24 hours?Yes... and now, you probably understand why most people host sites remotely - hosting companies are specialized in buying/configuring/maintaining server computers to run 24/7, allowing you to use them and alter configurations to some degree for a price ranging anything between "free" and a few hundred per month. Domain Name (DNS)? people can type the domain name (e.g. www.mysite.) instead of myIPAddress?It's slightly harder than it sounds IF you plan to host the site on your own computer...In that case, you need to have a DNS server at your own computer. The computer can be the same one with the web server or a different one, but must exist. In that server, you specify what name corresponds to what IP. Then, when you buy the domain name, you point it to your DNS server.If you're using a hosting service, they'll provide you with their "name servers" (names that correspond to their DNS servers' IP addresses). You then point your domain to those name servers.ISP (for the bandwidth issue) because hosting a stie requires lot more bandwidth than just visiting other sites as a user?If your ISP has limited bandwidth, yes. Where I live, all ISPs offer unlimited bandwidth, so that's irrelevant.Keep in mind though that to serve a large number of users simultaneously, you may have to get a plan that has higher upload speed. Normally, ISPs compete in offering good download speeds, but that's not what you need for a server. Personally, I don't serve any high traffic sites, so the plan I have suits me, but if you have ambitions to be the next [insert site that is popular worldwide], then this is something to watch out for. Am I getting it right? That emoticon is reserved for people who don't get it... and you get it . Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.