Enable Plugin Installation on AWS EC2 Instances

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