?
Solved

copy files to ubuntu webserver

Posted on 2014-09-17
3
Medium Priority
?
222 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 62

Accepted Solution

by:
gheist earned 1500 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 38

Expert Comment

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

Expert Comment

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

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Monitoring systems evolution, cloud technology benefits and cloud cost calculators business utility.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
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.
Suggested Courses

762 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