Creating Your Own Webserver and Hosting A Website from Your Linux Box

If you have any questions or problems regarding this article and want help within 24 Hours? Ask Now

Support TecMint: Did you find this tutorial helpful?. Please help to keep it alive by donating. Every cent counts! - Donate Now

Avishek Kumar

I am a major in computer science, love to research nix. I love to write codes and scripts, review distros, experiment Foss Technologies, write technical articles, Hack, of course Ethically. I am working as System Administrator (nix) for a NGO.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Introduction to Linux - A Hands on Guide

You may also like...

54 Responses

  1. deepesh says:

    I am using data card & I want host my website from my laptop so it can happen.

    I am getting problem while host website in outside.
    my website work only local host.

    • Ravi Saive says:


      Yes you can host your website in your laptop, but you need a static IP address to make it available on the web..May I know what kind of problems you facing while setting up website?

  2. rudra says:

    I want to place hosting live for my company please help me with step so i can have some business and can join client too

    • Ravi Saive says:


      We’ve already presented the article with nice step-by-step article to host your own website under Linux server, now may I know what kind of help you looking for?

  3. ks says:

    Thanks so much for this! Extremely helpful and easy to follow!

  4. Scott says:

    This guide was so helpful! I went the wordpress route instead, and everything works! Thank you so much!!

  5. nj says:

    Hello superb explanation. I thank you and I find you have saved me a lot of time. Now my problem: I placed the drubal in /var/www and it does not load on my browser so I have to place it in /var/www/html for it to load. Is this a problem? Now it seems to complicate the installation somewhat. Thank you!

    • Ravi Saive says:

      It’s depend on which Linux OS version you using, in CentOS Apache default path is /var/www/html and in Ubuntu its /var/www.

  6. segovia says:

    Why did you say that I shall never give IP address to someone you don’t know? How can other people visit my site then? I am confused.

  7. Bert says:

    How do I create the php file in my apache directory?

    • Ravi Saive says:

      Simply using vi or nano editor to create a file with .php extension. For example, index.php would be your new php file.

Leave a Reply

Your email address will not be published. Required fields are marked *

Join Over 95000+ Linux Users
  1. 66,682
  2. 3,836
  3. 31,647

Enter your email to get latest Linux Howto's