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

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

82 Responses

  1. Sourabh Thakur says:

    good sir and thanks

  2. MMS says:

    it open website by ip address or something like local host ….
    How to open website by typing eg :::

  3. cypher says:

    But if someone is using windows. Can that person still have Linux server been installed?

    • Ravi Saive says:


      Yes you can install Linux server there isn’t any major difference, except you must know about root, swap partition before installing..

  4. 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?

  5. 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?

  6. ks says:

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

  7. Scott says:

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

  8. 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.

  9. 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.

  10. 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.

Got something to say? Join the discussion.

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.