+ Post New Thread
Results 1 to 14 of 14
*nix Thread, Upload files to my Ubuntu Web Server in Technical; And for my second (and last) Linux question of the night..... I have just installed Ubuntu server and installed LAMP ...
  1. #1

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,372
    Thank Post
    906
    Thanked 1,811 Times in 1,559 Posts
    Blog Entries
    12
    Rep Power
    468

    Upload files to my Ubuntu Web Server

    And for my second (and last) Linux question of the night.....

    I have just installed Ubuntu server and installed LAMP during the setup. I can go to the default Apache page by typing http://ipaddress into a web browser.

    How would i upload a simple html file there from a Windows or Mac machine on the same network?

    Sorry sounds a basic question but im a Linux newbie.

    Z

  2. #2

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,532
    Thank Post
    1,341
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200
    I use proftpd as a ftp server

    It integrates its userbase with that of the system users.

    So when you log in via ftp, your ftp home folder is your system home folder.

    Once you have uploaded the file, you can use the command line to copy the file to the document root of apache

    Or you can use the GUI

  3. #3

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,192
    Thank Post
    300
    Thanked 215 Times in 185 Posts
    Rep Power
    57
    If you have it installed in parallels on a mac then you should be able to install the parallel tools. Now i can't remember if it allows for shared folders between the two machines.

    Probably not the way you wanted to do it though.

    Now i have no experience of Linux but i would assume to you create a shared folder somewhere on your Linux machine using SAMBA or FTP and access the share through Finder's connect to server option.

    That's as much help as i can be

  4. #4

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,532
    Thank Post
    1,341
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200
    To install proftpd, you would use the package manager, Synaptic, in the adminsitrator menu and just search for it, mark it do be downloaded, and then click apply

  5. #5
    somabc's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    2,337
    Thank Post
    83
    Thanked 388 Times in 258 Posts
    Rep Power
    112
    You can use SAMBA, NFS or FTP. If you just want to upload files for a website ftp is probably easiest.

  6. #6

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    18,496
    Thank Post
    526
    Thanked 2,638 Times in 2,042 Posts
    Blog Entries
    24
    Rep Power
    895
    Quote Originally Posted by RabbieBurns View Post
    To install proftpd, you would use the package manager, Synaptic, in the adminsitrator menu and just search for it, mark it do be downloaded, and then click apply
    There's no GUI in Ubuntu Server by default.

  7. #7
    somabc's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    2,337
    Thank Post
    83
    Thanked 388 Times in 258 Posts
    Rep Power
    112
    Last edited by somabc; 17th February 2009 at 01:22 AM.

  8. #8

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,532
    Thank Post
    1,341
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200
    oh aye, didnt clock it was server version.

  9. #9

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,867
    Thank Post
    412
    Thanked 778 Times in 651 Posts
    Rep Power
    182
    With ssh/scp:

    Code:
    scp /path/on/mac/file.html serverip:/path/on/server/file.html

  10. #10
    kesomir's Avatar
    Join Date
    Mar 2008
    Location
    London
    Posts
    288
    Thank Post
    15
    Thanked 28 Times in 23 Posts
    Rep Power
    18
    You don't need to install ftp - and I would recommend not doing so as you can just use ssh (sftp = more secure).

    For windows download the following two tools:

    putty - allows you ssh shell access
    winscp - allows you sftp ssh access which looks and works like an ftp client would (as it is an ftp client).

  11. #11

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,372
    Thank Post
    906
    Thanked 1,811 Times in 1,559 Posts
    Blog Entries
    12
    Rep Power
    468
    Ok thanks, as this is a test webserver i will go down the FTP route. I used the command
    Code:
    sudo-get install proftp
    and

    Code:
    sudo-get install proftp
    and i get this error

    Couldn't find package proftp
    How do i go about installing it?

    Thanks

  12. #12

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    18,496
    Thank Post
    526
    Thanked 2,638 Times in 2,042 Posts
    Blog Entries
    24
    Rep Power
    895
    The package is proftpd not proftp

  13. Thanks to localzuk from:

    FN-GM (17th February 2009)

  14. #13

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    16,372
    Thank Post
    906
    Thanked 1,811 Times in 1,559 Posts
    Blog Entries
    12
    Rep Power
    468
    Quote Originally Posted by localzuk View Post
    The package is proftpd not proftp
    i knew that

  15. #14


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,033 Times in 813 Posts
    Rep Power
    341
    top tip:
    Code:
     apt-cache search proftp
    You only really want FTP if you need your users to be able to upload things (because ftp clients are historically more common than sftp). It's a legacy application IMO.

    On a webserver it is most likely that you will want to ssh onto it at some point to fix things - so you'll already have one port open. Others have mentioned SFTP. All you need to do is
    Code:
    sudo apt-get install openssh-server
    and you can remote into it and copy your files securely sftp doesn't transmit plaintext passwords like ftp, infact you don't even need passwords if you use (more secure) certificates.
    ssh is a much better way, you can even use it with rsync.....



SHARE:
+ Post New Thread

Similar Threads

  1. Moodle Block - Web Files
    By Hightower in forum Virtual Learning Platforms
    Replies: 0
    Last Post: 26th January 2009, 10:56 AM
  2. Ubuntu Server 8.04
    By Hightower in forum How do you do....it?
    Replies: 17
    Last Post: 18th June 2008, 11:51 AM
  3. Converting video files to be used on the web site
    By tosca925 in forum How do you do....it?
    Replies: 5
    Last Post: 28th April 2007, 08:31 AM
  4. Replies: 18
    Last Post: 8th July 2006, 01:13 AM
  5. Video files on web site.
    By Kyle in forum How do you do....it?
    Replies: 1
    Last Post: 9th February 2006, 09:28 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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