eclipse-che / che

Kubernetes based Cloud Development Environments for Enterprise Teams
http://eclipse.org/che
Eclipse Public License 2.0
6.96k stars 1.19k forks source link

Wordpress issue www-data:www-data #3018

Closed tijsproost closed 7 years ago

tijsproost commented 7 years ago

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 commented 7 years ago

@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.

TylerJewell commented 7 years ago

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

tijsproost commented 7 years ago

@benoitf @TylerJewell I updated the question.

TylerJewell commented 7 years ago

@kaloyan-raev - adding for perspective and expertise.

kaloyan-raev commented 7 years ago

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

tijsproost commented 7 years ago

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

kaloyan-raev commented 7 years ago

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

ghost commented 7 years ago

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 commented 7 years ago

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?