LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-14-2006, 04:08 AM   #1
YAOMK
Member
 
Registered: Apr 2006
Location: Ft. Lauderdale
Distribution: FC7 and CentOS 5
Posts: 40

Rep: Reputation: 15
Problem transfering files using SCP to /var/www/html


Hey guys, I have set up my linux box as a web server. I'm trying to add content to /var/www/html through scp from a windows client. The problem is that when I start the http service, the default apache page shows instead of my html content. I think this have to do with the file permissions but I dont know how to change them on the client side. Any possible help is much apreciated.
 
Old 10-14-2006, 05:20 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
The only way I am familiar with transferring/connecting from a MS Windows box to a ssh server is through PuTTY and associated programs. Is that what you are using? The most straight forward approach, at least until you figure out what is going on, would be to actually log onto your webseverver via ssh. The Linux scp program will preserve permissions and time stamps with the -p option, but I don't know how that would work coming from a MS environment. I don't have a MS machine running right now to see what is available through PuTTY.
 
Old 10-14-2006, 06:03 AM   #3
YAOMK
Member
 
Registered: Apr 2006
Location: Ft. Lauderdale
Distribution: FC7 and CentOS 5
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks for your reply Blackhole54. After playing with it I finally got it resolved, it was a permision issue. I chmod to 744 and it works. Prior to this I'd just cp from my home directory to /var/www/html and that would take care of the apropriate permisions, but this time around I was having trouble doing this through scp(I'm new to ssh). Again many thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I give a user permission to save files to /var/www/html? rotnay6000 Linux - Newbie 10 07-14-2009 08:45 PM
apache server setup and how to place files in the var/www/html directory dramous Linux - Newbie 7 09-28-2004 04:18 AM
apache server setup and how to place files in the var/www/html directory dramous Linux - Software 3 09-25-2004 02:38 AM
apache server setup and how to place files in the var/www/html directory dramous Linux - General 2 09-25-2004 01:29 AM
Can't save files to /var/www/html/ Panopticon Linux - Newbie 14 09-12-2003 02:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration