Results 1 to 4 of 4

Thread: run a web server

  1. #1
    Join Date
    Nov 2015
    Beans
    1

    run a web server

    hi, im running a 15.4 ubuntu [vivid vervet] desktop edition and i installed apache 2 on it....
    can any one tell me how to copy my website files to www folder that every body inthe internet can access..?

  2. #2
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: run a web server

    Before going any further, a few questions:

    Did you know that support for Vivid runs out in January?

    Is this in your home and, if so, does you ISP allow this?

    Are you prepared to deal with security?

    Do you realize that you should run a web server with the very least number of services and that a desktop environment exposes more attack surface to those with ill intent? Do you realize that this is why Ubuntu offers a server version?
    Last edited by QIII; November 25th, 2015 at 09:21 PM.
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

  3. #3
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: run a web server

    Quote Originally Posted by debjyoti2 View Post
    hi, im running a 15.4 ubuntu [vivid vervet] desktop edition and i installed apache 2 on it....
    can any one tell me how to copy my website files to www folder that every body in the internet can access..?
    As long as you stay with static XHTML + CSS then security is more or less built in. The same cannot be said of ventures involving PHP or other languages.

    If you are sticking with static XHTML + CSS, then just move your files to /var/www/html and you are set. Everything you put there will be visible to the net. So only put things there that you intend to stay public. If you are the only user logging in to that machine then you can get write permission by taking ownership of the directory:

    Code:
    sudo chown debjoyti2 /var/www/html/
    If you want to share write access to the web files with other users, then you'll have to use groups.

    As far as the version goes, 14.04 is supported through 2019 and is thus a better choice than 15.04.

  4. #4
    Join Date
    Dec 2015
    Beans
    7

    Re: run a web server

    you can copy your files via terminal using this command: sudo mv (to move) or cp (to copy) /path/to/dir/ /var/www/html/ and you can chown them to apache user with this command: sudo cd /var/www/html/ and than chown -R www-data:www-data * it will chown everything in that folder to apache user and group

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •