2

As title said, how do I upload my php files into my newly installed httpd (/var/www/html) on a EC2 instance?

I am trying to use cyberduck(using sftp), but apperantly, when I connected to my EC2 instance, it shows nothing (no files, no folders). Am I missing something/some settings??

1 Answer 1

0

Check the rights the user you use to connect has. Try creating a separate which has sufficient rights to do this.

5
  • I cant login as root. It always said, please login as ec2-user instead of root. Then, I always login as ec2-user, and the problem always there Am I missing anything? Commented Mar 1, 2011 at 9:23
  • Log onto ssh, then invoke 'sudo -i', supply your password and make a new user with rights to the web-folder. Commented Mar 1, 2011 at 10:15
  • i am new to linux, can u write down the steps into your answer? Like, how to grant rights to users etc, so that I can accept your answer as best answer Commented Mar 1, 2011 at 10:37
  • OKay, i already give the user rights: "chown -R NewUser /var/www/html", but when I connect via cyberduck, it still display the files thats 2 level above the /var/ directory, and i cant see /var/www/html folder Commented Mar 1, 2011 at 10:47
  • IF you are connected with NewUser to ssh and you run the command 'touch /var/www/html' does this work? Commented Mar 1, 2011 at 11:14

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.