36 AnswersNew Answer
At first buy a hosting service and a domain for your website. After you buy. Go to google, bing webmaster tool. Add your website. And wala! your website is published to world. Do something creative and unique thing on your website to grab attention of visitor.
Publishing a website has three intial steps: 1. A Web Hosting Server This is where you'll have your web related files. Users will basically access contents (html, css, scripts, database, resourses etc.) of the web server. You can have your own web server, or you can lease it on web (Bluehost is a good one). 2. A Domain Name This will help your site have an unique identity on the web. You can do so by registering a domain name with a domain name registrar. Some popular domain name registrar are GoDaddy, Google Domains etc. 3. A Content Managing Software (CMS) This piece of software is used to manage your content on the web server. Some examples of CMS are Drupal, WordPress etc. Thus, you have to install CMS on your webserver and link it through a custom domain and your site becomes online.
Use heroku for dynamic web hosting. It's free for single instance
just install your own box from Slackware or Debian or CentOs. They come with a ready to serve Apache daemon. You can install the OS on any old computer laying around the house that you didn't use anymore, or you can install as a virtual machine with http://virtualbox.org You go to http://afraid.org and point a hostname to your home IP address dynamically, and open up port 80 to your new web server box. Next, you dump an index.html file into the DocumentRoot of the server (typically a folder named htdocs/ or public_html) and you now have a free, live webserver on the Internet. I hope that helps!
Buy a domain and hosting. Preferable you can use one of WordPress themes and customize it. If you need help to customize a WordPress theme visit www.websiteguru.host
For testing or development purposes, I'd recommend setting up a GitHub account. You can use the GitHub Pages feature to publish your site to best of all its free...
Please dislike that spammer Jan Marin. Spammers are not encouraged here - as a community we need to assert that fact.
you can try buying a domain at ho daddy.com. It's cheap.
U should buy domain, it is not for free. But if you want it for free, you can register in github, and post your website there. After, you can access you website through url websitename.github.io
Depends what you want, but if you just like to test your website online here are some free options: 1) www.surge.sh is a great and easy tool. 2) github.com with github pages is a little more work, and you need to know how to use git. 3) Heroku is also a possibility but probably only a good/interesting option if you want to build and test more complex applications like spring applications which need deploy to a tomcat server, or using a database.
you must buy hosting and domain .
you asked how to publish a website. therefore i will assume you know how to make one. you need to have a computer connected to the internet with symmetrical uplink and downlink speeds. most of us home users have high downlink slow uplink connections cause we mostly need high data flow towards our PC. but to serve a website you need high out and sometimes fairly high in to the computer holding your site. you could buy shared hosting , VPS hosting or dedicated server (in increasing order of resource usage capacity and independence ) from webhosting providers. if you want to try things out do it in small scale for now, you could find free shared hosting (use Google search) or free VPS hosting (freevps.us the best). In case of shared hosting, you either place your HTML files in the publicly accessible folder (public_ html or some such , defined under settings for the server software ... given to you by your webhost) or setup database and install PHP scripts in case of dynamic sites. if it is VPS or dedicated you choose, then you install the OS and secure the system, setup the webserver and db software and other things you need. now you proceed to doing the same as above. you could also use free to use services like Google sites, blogger, WordPress.org etc.
You can always Install Wamp (or Xampp) and open your site from there. That is IF you want to host it on your own pc.
by host you can buy host from godady
first buy hosting server like go to hostinger.com where create your domain in that upload all your code files that's it u are ready to rock
first try in wampp server in your pc then buy a host and publish