Guest User

Untitled

a guest
Oct 17th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. I have been fighting this problem several times, without success.
  2. Now I have been able to pin down the problem.
  3.  
  4. The wanted behaviour is:
  5.  
  6. You paste the url of the module or theme you want to install
  7. You click install
  8. Your module or theme gets installed
  9.  
  10. What I have seen on several installations, and this is what you don't want:
  11.  
  12. You paste the url of the module or theme you want to install
  13. You click install
  14. It asks for some FTP (or SSH) credentials. WTF??????
  15.  
  16. To avoid this, make sure the folder /sites/default is OWNED by the user that executes the drupal scripts. On most Ubuntu installations, this is the apache user: www-data.
  17.  
  18. Don't ask me why this works. I don't know if this is intended or not. It doesn't make so much sense to me, but there might be an explanation. For me it would be OK that the temporary directory is writable by the apache user and the themes or modules folder is writable as well.
  19.  
  20. So this should do the trick when the user is www-data:
  21. chown www-data sites/default
  22.  
  23. I hope this works. Please let me know.
Add Comment
Please, Sign In to add comment