Solved

copy files to ubuntu webserver

Posted on 2014-09-17
3
199 Views
Last Modified: 2014-11-12
Hi, I setup an Ubuntu instance on AWS EC2 and install LAMP webserver. I tried to copy a file test.php to /var/www/html folder, but it said Permission denied

I used the following command in Terminal on my Mac:

scp -i mypem.pem test.php ubuntu@ec2-54-206-105-243.ap-southeast 2.compute.amazonaws.com:/var/www/html

My questions are:
1. Do I need to change the /var/www/html folder permission before I copy files to it?
2. Besides the SSH, can I use a GUI tool to do the files transferring?  


Please advise. thanks
0
Comment
Question by:tonitoni99
  • 2
3 Comments
 
LVL 61

Accepted Solution

by:
gheist earned 500 total points
ID: 40328256
You need to either copy as root or grant ownership to web directries to your ubuntu user (make sure apache cannot rewrite web content)
0
 
LVL 37

Expert Comment

by:Gerwin Jansen
ID: 40328336
A WinSCP alternative for MacOS would be Cyberduck http://sourceforge.net/projects/cyberduck/
0
 
LVL 61

Expert Comment

by:gheist
ID: 40328448
Filezilla too...
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Review of Cloudberry Explorer Pro - Linked with Amazon Web Services (AWS) S3 Being a Cloud technology fan and in particular services that are provided by AWS, I was interested to find a growing number of vendors writing software and applications …
Monitoring systems evolution, cloud technology benefits and cloud cost calculators business utility.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now