Solved

copy files to ubuntu webserver

Posted on 2014-09-17
3
197 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Monitoring systems evolution, cloud technology benefits and cloud cost calculators business utility.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

747 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

15 Experts available now in Live!

Get 1:1 Help Now