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

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

76 Responses

  1. moeez says:

    Hi, I already made a web server on my Kali Linux and also do a port forwarding on virtual server tab but my web page only access from the device which are connected with my home wifi or the same network on which server is connected but i want it to be access from world wide what can i do for that please help me thanks.

    • Ravi Saive says:


      Please have a public IP address setup on the server to make a web sever page accessible from outside world.

      • moeez says:

        I got my public IP by searching on Google “what is my ip” but with that ip my webserver is not accessible from outside world if we try to access from outside world then it give error that web page at http://my public ip could not be loaded because “net::err_connection_timed_out. this error happen when i try to access my webserver from outside local internet from mobile what should i do now or from where i can get the public ip address

        • Ravi Saive says:


          You need to buy the Public IP address for your web server or else take hosting from cheap hosting provider they will provide you free IP address for your web server…

      • moeez says:

        and how can i have public ip address setup please guide me i really need help

  2. Mackenzie says:

    Great Article, Really Helpful…

  3. Oliver Russell says:

    Instead of manually installing webserver and stack manually, isn’t it better to host PHP site with platform like Cloudways, where the these packages are installed and configured automatically? This will save a lot of time, which you can instead spend on building your app.

  4. roz says:

    so useful for me thanks …

  5. Aditya Shakya says:

    Great Work… Thanks for this, Helped me a lot …

  6. Ridho says:

    Thanks for the information, great article and tutorial

  7. Bruce says:

    Hi mate, thanks for the great article, I followed your step of installing Drupal and after copying the extracted Drupal contents to /var/www, I wasn’t greeted with the page as you showed in the screenshot.

    It’s the same Apache greeting page. So I tried to move those contents again into var/www/html directory again and still getting greeted with the same Apache default page. Could you tell me if I’m doing anything wrong? Thanks

    • Ravi Saive says:


      Delete the default apache index.html page and try again, I sure you will get drupal setup page as in this guide..

  8. Charles says:

    Um Yes! Great article! Would love further guides from you!

  9. Mozgear says:

    Planning to build my own web server too but i have problem. How do you connect your domain name to your webhost? Specifically how will i associate my webhost to a nameserver which later i can use those NS to my domain to.

    • Ravi Saive says:


      That’s good to hear that you’re planning to setup your own webserver, for connecting domain to webhost, you need to create a DNA A Record on the domain register panel and point back to the IP address of Sever where actual web server files hosted..

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.