Results 1 to 4 of 4

Thread: Setting up NFS

  1. #1
    Join Date
    Jan 2010
    Location
    Germany
    Beans
    165
    Distro
    Ubuntu 12.04 Precise Pangolin

    Setting up NFS

    Hi,

    I used this tutorial among countless others on youtube and for some reason I still cannot mount the share on my client pc.

    Nothing happens it just times out. For the ensure I had not made any mistakes I used everything word for word on the tutorial. Except the IP of course. Here is my exports file on the Server:

    Code:
    /var/www   192.168.178.1/24(rw,no_root_squash,async)
    I then restart the nfs kernel and follow the next step on the client PC:

    Code:
    sudo mount 192.168.178.150:/var/www /local/server
    all I get is this:

    Code:
    mount.nfs: Connection timed out
    Any ideas? )
    Try not to be a man of success but be a man of value
    USE FUL LINKS
    Ubuntu Server setup guide
    setting up a DNS Server on Ubuntu

  2. #2
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Setting up NFS

    Quote Originally Posted by chrisguk View Post
    Hi,

    I used this tutorial among countless others on youtube and for some reason I still cannot mount the share on my client pc.

    Nothing happens it just times out. For the ensure I had not made any mistakes I used everything word for word on the tutorial. Except the IP of course. Here is my exports file on the Server:

    Code:
    /var/www   192.168.178.1/24(rw,no_root_squash,async)
    I then restart the nfs kernel and follow the next step on the client PC:

    Code:
    sudo mount 192.168.178.150:/var/www /local/server
    all I get is this:

    Code:
    mount.nfs: Connection timed out
    Any ideas? )
    We can deal with both the NFS problem and the other post you have .

    Are you using NFSv4? If so you should do it this way.

    I just set up a development LAMP stack for a user on my network (I'm the admin) and used NFSv4 with it. I can open a browser and go to any of the virtual hosts I have set up by the virtual host name only. I have one for me that is named bab. I can use either bab or www.bab. You don't need DNS or FQDN on the dev server unless you want the hassle of running a LAN side DNS server.

    FWIW - I don't keep my web content under /var/www. I store the data at /data/www/<virtualhost> and set Apache to understand. All the work is on Ubuntu 12.04 so it won't be any different for you set up. Since I just completed this I have my notes handy. Ask questions if you need more help.
    Last edited by bab1; January 12th, 2013 at 04:15 AM.
    -BAB1

  3. #3
    Join Date
    Jan 2010
    Location
    Germany
    Beans
    165
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Setting up NFS

    Thank you for your reply. I will have a look at your suggestions when I wake in the morning. If you have a step by step user setup for virtual hosts that will be helpful.

    By the way I did this while I was reading yours.

    I setup the LAMP stack of course and pointed my browser on the client PC to http://192.168.178.150 (localhost) and it displayed the normal default page "It works"

    I also installed phpmyadmin and did the same in the browser:

    http://192.168.178.150/phpmyadmin

    so if I setup a virtual host the normal way on the server for example:

    http://mytestsite.local Local folders on Server under /var/www

    and point my browser to that URL above on the client PC, will it work and display the web content or is there something I have to do, like make my client PC part of the domain or something?
    Try not to be a man of success but be a man of value
    USE FUL LINKS
    Ubuntu Server setup guide
    setting up a DNS Server on Ubuntu

  4. #4
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Setting up NFS

    Quote Originally Posted by chrisguk View Post
    Thank you for your reply. I will have a look at your suggestions when I wake in the morning. If you have a step by step user setup for virtual hosts that will be helpful.

    By the way I did this while I was reading yours.

    I setup the LAMP stack of course and pointed my browser on the client PC to http://192.168.178.150 (localhost) and it displayed the normal default page "It works"

    I also installed phpmyadmin and did the same in the browser:

    http://192.168.178.150/phpmyadmin

    so if I setup a virtual host the normal way on the server for example:

    http://mytestsite.local Local folders on Server under /var/www

    and point my browser to that URL above on the client PC, will it work and display the web content or is there something I have to do, like make my client PC part of the domain or something?
    No you don't have to be part of a domain. The domain is a centralized admin and security construct. You can address the web server by its hostname or by virtual host name. Remember that folks use the same naming for things (i.e. domain) and they mean different things depending upon the context.
    -BAB1

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
  •