AWS EC2 FTP / HTML AWS EC2 FTP / HTML apache apache

AWS EC2 FTP / HTML


First make sure you can write to the documentroot (/var/www/html in this case)The default groups for user "ec2-user" on EC2 is "ec2-user" & "wheel"

Either give user "ec2-user" ownership of /var/www/html with the following command

sudo chown -R ec2-user /var/www/html

Or group "wheel" ownership and write permissions

sudo chgrp -R wheel /var/www/htmlsudo chmod g+w /var/www/html

Second step is to set your FTP client (Filezilla, CyberDuck, ...) to default to /var/www/htmlor create a symbolic link in the home directory ec2-user pointing to docroot.

ln -s /var/www/html ~/docroot

When you authenicate on your ftp client, just doubleclick on what looks like the "docroot" folder.

One caveat is that your DocumentRoot may not be configured as /var/www/html, please check your configurations in /etc/httpd/conf.d/*.conf labeled with "DocumentRoot".


Here is a helpful answer, and at the end is a link to a video for Cyberduck. The text of the Filezilla explanation was enough for me to figure it out for Cyberduck.

Connect to Amazon EC2 file directory using Filezilla and SFTP