If you have setup an Linux instance in AWS with WordPress and are having trouble installing plugins because it is asking for an FTP username and password.
All you have to do is run this command and then it won’t ask you anymore, it will just install them.
sudo chown -R apache:apache /var/www/html
Go to Network & Security, then security groups.
Select the Security Group for the server.
Select the Inbound tab.
Make sure both SSH and HTTP and selected. I had to add a rule for HTTP