{"action":"created","issue":{"url":"https://api.github.com/repos/roots/bedrock-ansible/issues/150","labels_url":"https://api.github.com/repos/roots/bedrock-ansible/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/roots/bedrock-ansible/issues/150/comments","events_url":"https://api.github.com/repos/roots/bedrock-ansible/issues/150/events","html_url":"https://github.com/roots/bedrock-ansible/issues/150","id":65405866,"number":150,"title":"HHVM and directory permissions","user":{"login":"enricodeleo","id":3534555,"avatar_url":"https://avatars.githubusercontent.com/u/3534555?v=3","gravatar_id":"","url":"https://api.github.com/users/enricodeleo","html_url":"https://github.com/enricodeleo","followers_url":"https://api.github.com/users/enricodeleo/followers","following_url":"https://api.github.com/users/enricodeleo/following{/other_user}","gists_url":"https://api.github.com/users/enricodeleo/gists{/gist_id}","starred_url":"https://api.github.com/users/enricodeleo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enricodeleo/subscriptions","organizations_url":"https://api.github.com/users/enricodeleo/orgs","repos_url":"https://api.github.com/users/enricodeleo/repos","events_url":"https://api.github.com/users/enricodeleo/events{/privacy}","received_events_url":"https://api.github.com/users/enricodeleo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-31T09:17:20Z","updated_at":"2015-03-31T16:41:58Z","closed_at":null,"body":"Hi everybody,\r\ngood to see we have HHVM support now! I forked and implemented this feature myself (plus SSL) in the past but I had some problem with directory permissions: I had to assign the ownership of `/srv/www/site_name` to the user www-data. \r\nNow, hoping this implementation was better than mine, I cloned a new copy of this repo and tried it with HHVM but I experienced the same issue. \r\n\r\nActually, I had to modify something since the current version of bedrock-ansible didn't work for me out of the box with HHVM set to true (the error was 502 bad gateway). I discovered that I have to switch from unix socket to tcp socket in order to make it work. The same happened with my implementation. \r\n\r\nNow, if I leave the `vagrant` user as owner, everytime I try to upload a file or install a plugin from the dashboard I'm asked for ftp credentials.  \r\n\r\nAnyone experienced the same issue? Any hint?"},"comment":{"url":"https://api.github.com/repos/roots/bedrock-ansible/issues/comments/88165439","html_url":"https://github.com/roots/bedrock-ansible/issues/150#issuecomment-88165439","issue_url":"https://api.github.com/repos/roots/bedrock-ansible/issues/150","id":88165439,"user":{"login":"louim","id":923718,"avatar_url":"https://avatars.githubusercontent.com/u/923718?v=3","gravatar_id":"","url":"https://api.github.com/users/louim","html_url":"https://github.com/louim","followers_url":"https://api.github.com/users/louim/followers","following_url":"https://api.github.com/users/louim/following{/other_user}","gists_url":"https://api.github.com/users/louim/gists{/gist_id}","starred_url":"https://api.github.com/users/louim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/louim/subscriptions","organizations_url":"https://api.github.com/users/louim/orgs","repos_url":"https://api.github.com/users/louim/repos","events_url":"https://api.github.com/users/louim/events{/privacy}","received_events_url":"https://api.github.com/users/louim/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T16:41:58Z","updated_at":"2015-03-31T16:41:58Z","body":"@enricodeleo I just set-up a bedrock-ansible using the HHVM option, and I have the same problem as you for the uploads. The owner of the the folder is : `deploy www-data` but the permissions are `755`instead of `775` so the webserver (nginx) can't write to the folders.\r\n`ps aux | egrep nginx` give me : \r\n\r\n```\r\nubuntu   12614  0.0  0.0   8160   916 pts/2    S+   16:39   0:00 egrep --color=auto nginx\r\nroot     15906  0.0  0.1  91256  2856 ?        Ss   Mar27   0:00 nginx: master process /usr/sbin/nginx\r\nwww-data 28052  0.0  0.3  94576  6272 ?        S    Mar30   0:02 nginx: worker process\r\nwww-data 28053  0.0  0.3  94576  6280 ?        S    Mar30   0:04 nginx: worker process\r\n```\r\n\r\nFor your second problem (the bad gateway and HHVM), I didn't experience that. Did you check the logs for any info that might be useful? Did you try to restart HHVM and NGINX manually before switching to a tcp socket? \r\n\r\nI wonder if that has hanything to do with HHVM at all. Since I'm doing a talk about Bedrock this evening, I going to experiment this afternoon with clean installs with HHVM and PHP-FPM. I'll report back. @swalkinshaw, what the permissions should be on the folders? "}}