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

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators

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. Work as a Paid freelancer/writer at TecMint.

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Ubuntu Linux Toolbox: 1000+ Commands

You may also like...

33 Responses

  1. vishal says:

    Sir , i started to create a website after reading your article , but i’m successful in publishing my website upto my local network . but i want to make it live through out the web ( outside my network also ) . and i think i had static ip too , but i’m unable to make my site live for whole web . please help me

  2. thank you .it is very useful tuturial for installing LAMP Server

  3. Alejandro says:

    Which are the differences between ‘/var/www/html‘ and ‘/var/www‘?
    If i have created an html file with php on it, to be able to execute the file and see it on the browser where should i put my file?

    • Avishek Kumar says:

      Apache’s working directory in some distro is /var/www and in some disto /var/www/html.

      If you have html directory at location /var/www/, then it means your working directory is /var/www/html. Put you php file here. set up the correct file permission. and finally point your browser to 127.0.0.1/Php_filename.php.

      Replace Php_filename with the name of your PHP file.
      Hope it helps.

  4. Pavan says:

    Hi Avishek,
    It’s nice to have this tutorial. Need information in detail. How can we access this URL using www. Need info about that setup
    Thanks & Regards
    Pavan.kusuma

  5. Ananth S P says:

    Clear explanation.. just made it simple.. thank u

  6. dario d says:

    This was a great tutorial,thank you.This will help me to build my first web server and hos my websites.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>