PDA

View Full Version : [ubuntu] uploading files to apache



Lordbyronxxiv
December 23rd, 2010, 08:43 PM
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

windependence
December 24th, 2010, 08:04 AM
What works great for me and is secure is WinSCP. You can just drag and drop the files in Windoze and it even lets you edit permisssions and ownership. Great tool and free too.

-Tim

Lordbyronxxiv
December 25th, 2010, 01:16 AM
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)?

windependence
December 25th, 2010, 05:47 AM
Adding yourself to the wheel group might give you more juice.

-Tim

Lordbyronxxiv
December 25th, 2010, 06:58 AM
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?

furlabs
December 25th, 2010, 12:52 PM
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.

Vegan
December 26th, 2010, 03:50 AM
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.

ask21900
December 26th, 2010, 06:54 AM
What are your permissions on /var/www? If you have group write permissions this should do the trick:



sudo usermod -a -G www-data <username>


Otherwise, please post the output of

ls -l /var/www