Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wordpress issue www-data:www-data #3018

Closed
tijsproost opened this issue Nov 8, 2016 · 9 comments
Closed

Wordpress issue www-data:www-data #3018

tijsproost opened this issue Nov 8, 2016 · 9 comments
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.

Comments

@tijsproost
Copy link

tijsproost commented Nov 8, 2016

To update plugins in a wordpress installation i updated the file folder ownership of the project in eclipse to www-data:www-data. However at the moment that broke the file explorer in eclipse.

anybody suggestions how to fix this and keep wordpress updating plugings directly?

Workspace: PHP-default-stack
Project Source: Git - Wordpress

Step 1 - in terminal
sudo apt-get upgrade
sudo apt-get update
sudo apt-get install nano
sudo apt-get install phpmyadmin (and complete all steps)

Step 2 - setup wordpress

Step 3 - change the project directory owner to www-data:www-data to give the wordpress website permission to update plugins directly. Now my file explorer in the eclipse ide appears to by in 'read only' mode.
I tried to add 'user' to the www-data group and this didn't solve the problem.

Next i changed the owner to user:www-data wich solved the IDE problem but my wordpress install is not updating plugins.

@benoitf
Copy link
Contributor

benoitf commented Nov 8, 2016

@tijsproost I think you should add more details to this issue in order to reproduce it or help more quickly
Version of Che
Docker image used / workspace
Error reported/screenshot, etc.

@benoitf benoitf added the kind/question Questions that haven't been identified as being feature requests or bugs. label Nov 8, 2016
@TylerJewell
Copy link

Yes, we need step by step instructions to reproduce the issue - from the moment of installation + all configuration items.

@tijsproost
Copy link
Author

@benoitf @TylerJewell I updated the question.

@TylerJewell
Copy link

@kaloyan-raev - adding for perspective and expertise.

@kaloyan-raev
Copy link
Contributor

@tijsproost Try loosening permissions instead of changing the ownership, i.e. execute chmod -R 777 your-wordpress-folder.

@tijsproost
Copy link
Author

@kaloyan-raev Wouldn't that effect the overall security?

@kaloyan-raev
Copy link
Contributor

@tijsproost You are giving write permissions for all OS users to your project files. What specific security concerns do you have about this?

@ghost
Copy link

ghost commented Nov 9, 2016

Yes, if a user in a container cannot have access to project files, they won't be displayed in the project tree. I think just lettings everyone to read and write but keeping user ownership will fix the issue for you.

@tijsproost
Copy link
Author

Ok! The solution works. The only problem I still encounter: if I now upload or create new files they have owner user:user instead of www-data:www-data like all other files. Any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.
Projects
None yet
Development

No branches or pull requests

4 participants