Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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??

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

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

share|improve this answer
    
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? –  moderaga Mar 1 '11 at 9:23
    
Log onto ssh, then invoke 'sudo -i', supply your password and make a new user with rights to the web-folder. –  Bart De Vos Mar 1 '11 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 –  moderaga Mar 1 '11 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 –  moderaga Mar 1 '11 at 10:47
    
IF you are connected with NewUser to ssh and you run the command 'touch /var/www/html' does this work? –  Bart De Vos Mar 1 '11 at 11:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.