Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: file location - localhost

  1. #1
    Join Date
    Aug 2005
    Beans
    123

    file location - localhost

    Hi - I've installed LAMP on my new laptop and can successfully navigate to localhost. I'm not all that clear about Ubuntu's filing system and would like to ask, where are my localhost files stored?

    Thanks - G

  2. #2
    Join Date
    Mar 2006
    Location
    Nerderlands
    Beans
    1,348
    Distro
    Ubuntu

    Re: file location - localhost

    /var/www/
    "Please choose a different password, the one you have chosen is in use by UID 1432"

  3. #3
    Join Date
    Aug 2005
    Beans
    123

    Re: file location - localhost

    Great - thanks G

  4. #4
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: file location - localhost

    You can set the location in the /etc/apache2/httpd.conf file:
    <VirtualHost *>
    ServerName YourServerName
    DocumentRoot /home/YourHomeFolder/www
    </Virtualhost>
    /var/www is owned by root

    /home/YourHomeFolder/www is owned by your user

  5. #5
    Join Date
    Feb 2007
    Beans
    131
    Distro
    Ubuntu Development Release

    Re: file location - localhost

    Quick hijack:

    Are there security advantages in having the files stored in the user's home directory?

  6. #6
    Join Date
    Oct 2006
    Location
    Finland
    Beans
    796
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: file location - localhost

    Not advantages, just that you don't need to be root to be able to put stuff in the shared directory.
    Please remember to mark the thread "solved" if we have success helping you out. This helps people to look for help later on.

  7. #7
    Join Date
    Aug 2005
    Beans
    123

    Re: file location - localhost

    Thanks guys - and a helpful hijack, too!

    G

    PS - I can't where to mark it as solved!!
    Last edited by gandalf458; June 18th, 2008 at 01:00 PM.

  8. #8
    Join Date
    Aug 2005
    Beans
    123

    Re: file location - localhost

    A further thought... If I change localhost to /home/user/www how do I then access PHPmyAdmin?

  9. #9
    Join Date
    Aug 2005
    Beans
    123

    Re: file location - localhost

    Quote Originally Posted by sisco311 View Post
    You can set the location in the /etc/apache2/httpd.conf file:
    I've changed the http.conf file to point to /home/user/www and restarted Ubuntu (I haven't figured out how to stop and restart the http server yet) but localhost still seems to be looking in /var/www

    Any idea what I might be doing wrong please?

  10. #10
    Join Date
    Aug 2005
    Beans
    123

    Re: file location - localhost

    Oops! Just found my problem. Press F5!

Page 1 of 2 12 LastLast

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
  •