Fix Wordpress plugin installation permission issue

April 10, 2020

Problem: When I try to install a plugin at Wordpress, I hit an error:

> Installation failed: Download failed. Destination directory for file streaming does not exist or is not writable.

This is due to some permission problem when the content folder. I was editing some files as a sudo su power user, but the install requires a ec2-user write acesss.

Solution: Assuming you are setting up on AWS EC2 instances as a ec-user and the Wordpress is inside /var/www path, then run the command:

    sudo chown -R ec2-user:apache /var/www

After changing the ownership, you should be able to install the plugin now.


Profile picture

Experience in software development, application architecture, and deploying cloud solutions for enterprise customers. Strong hands-on skills with a Master's degree in Computer Science and business acumen with a master of business administration (MBA) in Finance. Certified in Amazon Web Services (AWS), Google Cloud Platform (GCP), Microsoft Azure, Kubernetes (CKA, CKAD, CKS, KCNA) and Scrum (PSM, PSPO) with experience in building banking products from scratch. Connect on Linkedin

© 2022, @victorleungtw