Results 1 to 8 of 8

Thread: uploading files to apache

  1. #1
    Join Date
    May 2006
    Beans
    5

    Question uploading files to apache

    Hi All,
    I have set up a very basic apache server to host my own website (have not set up sql or database or php yet) and I am trying to find out how to fpt or copy my website. I am creating the site in windows and need to know how to transfer it to the server, preferably into the /var/www folder directly.

    -Mike

  2. #2
    Join Date
    May 2007
    Location
    Phoenix, Arizona USA
    Beans
    2,909
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: uploading files to apache

    What works great for me and is secure is WinSCP. You can just drag and drop the files in ******* and it even lets you edit permisssions and ownership. Great tool and free too.

    -Tim
    www.pcchopshop.net

    Hard to find and obsolete PC and server parts. "If we can't find it, it probably doesn't exist"

  3. #3
    Join Date
    May 2006
    Beans
    5

    Re: uploading files to apache

    I have tried to use both filezilla and that winSCP, the problem I am getting is that I don't have permission to write to that location, is there some way I can set it up to let me get root permissions for the transfer (kinda like sudo)?

  4. #4
    Join Date
    May 2007
    Location
    Phoenix, Arizona USA
    Beans
    2,909
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: uploading files to apache

    Adding yourself to the wheel group might give you more juice.

    -Tim
    www.pcchopshop.net

    Hard to find and obsolete PC and server parts. "If we can't find it, it probably doesn't exist"

  5. #5
    Join Date
    May 2006
    Beans
    5

    Re: uploading files to apache

    Quote Originally Posted by windependence View Post
    Adding yourself to the wheel group might give you more juice.

    -Tim
    I appreciate the information- unfortunatly I am still pretty new to linux administration, so I don't know what you mean wheel group, what exactly are you refering to?

  6. #6
    Join Date
    Jul 2008
    Beans
    35
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: uploading files to apache

    wheel is the name of the group in Red Hat that gives you superuser access. In Ubuntu the default superuser group is admin.

    Since you know about sudo, I assume you are already in the admin group. However, I don't believe winscp will allow you to sudo. What you need to do is winscp the files into your home directory, and then ssh into the server and use sudo to copy them into the /var/www directory.

  7. #7
    Join Date
    Aug 2008
    Location
    Victoria, BC Canada
    Beans
    1,741

    Re: uploading files to apache

    I use SAMBA then I can access my web folder easily and use Windows tools for editing web content.

    My server does not even have a GUI. Not needed, everything is web administrated.

  8. #8
    Join Date
    Oct 2009
    Beans
    24

    Re: uploading files to apache

    What are your permissions on /var/www? If you have group write permissions this should do the trick:

    Code:
    sudo usermod -a -G www-data <username>
    Otherwise, please post the output of
    Code:
    ls -l /var/www

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
  •