Support Forum

Troubles installing

19 Answers

New Answer

UN
Unknown
Member

I encountered the same problem, and tried the 777 work-around mentioned by Brian07002 as a temporary fix, to troubleshoot. (777 means that anyone and everyone can install and execute programs there!) Once I’d installed simple:press, I checked to see who owned the newly installed items. The listed owner was the group, “www-data.”

In summary: at least on my machine, simple:press expects /wp-content to belong to www-data, but it actually belong to root.

Workaround: in a terminal in your WordPress directory, change the group for wp-content and its contents to www-data (sudo chgrp -R www-data wp-content/) and change permissions to 775 (chmod -R 775 wp-content/). That allows both root and members of www-data to read, write, and execute files, but does not allow strangers or intruders to do so.

I have not figured out why the owner of the WordPress folders is root while the owner of the simple:press folders is www-data. I suspect that there is a better work-around that mine, but 775 is safer than 777, so I thought I’d post.

IK Ike
Ike
Member

Thanks for the input. Still not sure I completely follow you there!

YS Yellow Swordfish
Yellow Swordfish
Member

The bottom line is that ‘www-data’ should be the owner of wp-content. It most certainly should NOT be ‘root’. The whole point of wp-content is to give the user and other plugins a place to create files and folders necessary for them. Hosts should know this. So yes  – ‘www-data’ with permissions of 775 is absolutely what it should be.

LA LEMONHEAD Arthur
LEMONHEAD Arthur
Member

I had this error too.

If you are your own hoster, try to fix it in PuTTY by setting this rule :

Personally, it’s OK.

chown www-data:www-data /var/www -R

YS Yellow Swordfish
Yellow Swordfish
Member

Thanks for the info. Hope it helps someone…