Victor Leung
Victor Leung
BlogFlower shop

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.

About Victor Leung

Software development professional with expertise in application architecture, cloud solutions deployment, and financial products development. Possess a Master's degree in Computer Science and an MBA in Finance. Highly skilled in AWS (Certified Solutions Architect Professional, Developer and SysOps Administrator), GCP (Professional Cloud Architect), Microsoft Azure, Kubernetes(CKA, CKAD, CKS, KCNA), and Scrum(PSM, PSPO) methodologies.

Happy to connect

Continuous improvement

Copyright © 2023.