Results 1 to 7 of 7

Thread: a very stupid user

  1. #1
    Join Date
    Jan 2012
    Beans
    2

    Angry a very stupid user

    hi guys, im very new. I setup Ubuntu server and stupidly deleted the www directory. Is there a way to get this back? Thanks

  2. #2
    Join Date
    Jun 2006
    Location
    Antarctica
    Beans
    500
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: a very stupid user

    You mean /var/www ? I guess you can simply do "sudo mkdir /var/www", but it will still be empty...

  3. #3
    Join Date
    Jan 2012
    Beans
    2

    Re: a very stupid user

    yeah I did that but its empty

  4. #4
    prodigy_ is offline May the Ubuntu Be With You!
    Join Date
    Mar 2008
    Beans
    1,219

  5. #5
    Join Date
    Mar 2010
    Location
    India
    Beans
    8,175
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: a very stupid user

    I haven't used server, but in my desktop version, the folder contains a single html file "index.html", which contains just a test message code -
    HTML Code:
    <html><body><h1>It works!</h1>
    <p>This is the default web page for this server.</p>
    <p>The web server software is running but no content has been added, yet.</p>
    </body></html>
    So I assume it is just a place for static html pages that are to be served.
    Varun
    Help others by marking threads as [SOLVED], if they are. (See how)
    Wireless Script | Use Code Tags
    Am I not replying you? Perhaps this is why.

  6. #6
    Join Date
    Jan 2012
    Beans
    133
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: a very stupid user

    Quote Originally Posted by varunendra View Post
    I haven't used server, but in my desktop version, the folder contains a single html file "index.html", which contains just a test message code -
    HTML Code:
    <html><body><h1>It works!</h1>
    <p>This is the default web page for this server.</p>
    <p>The web server software is running but no content has been added, yet.</p>
    </body></html>
    So I assume it is just a place for static html pages that are to be served.
    putting a html file is to not showing the directory`s content by browsers

  7. #7
    Join Date
    Jul 2007
    Location
    UK
    Beans
    16,867
    Distro
    Ubuntu Development Release

    Re: a very stupid user

    Quote Originally Posted by thepigeonking View Post
    hi guys, im very new. I setup Ubuntu server and stupidly deleted the www directory. Is there a way to get this back? Thanks
    Won't it be in the trash folder?
    Depends on how you deleted it I'm guessing. I never used a server set up before.

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
  •