{"action":"created","issue":{"url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/781","repository_url":"https://api.github.com/repos/geerlingguy/drupal-vm","labels_url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/781/labels{/name}","comments_url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/781/comments","events_url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/781/events","html_url":"https://github.com/geerlingguy/drupal-vm/issues/781","id":164175264,"number":781,"title":"Using nginx runs php-fpm under the wrong user","user":{"login":"entendu","id":276273,"avatar_url":"https://avatars.githubusercontent.com/u/276273?v=3","gravatar_id":"","url":"https://api.github.com/users/entendu","html_url":"https://github.com/entendu","followers_url":"https://api.github.com/users/entendu/followers","following_url":"https://api.github.com/users/entendu/following{/other_user}","gists_url":"https://api.github.com/users/entendu/gists{/gist_id}","starred_url":"https://api.github.com/users/entendu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/entendu/subscriptions","organizations_url":"https://api.github.com/users/entendu/orgs","repos_url":"https://api.github.com/users/entendu/repos","events_url":"https://api.github.com/users/entendu/events{/privacy}","received_events_url":"https://api.github.com/users/entendu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/geerlingguy/drupal-vm/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/geerlingguy/drupal-vm/labels/upstream","name":"upstream","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-06T21:11:36Z","updated_at":"2016-07-10T00:34:54Z","closed_at":null,"body":"Using nginx, the worker process runs as user `nginx`, but the php-fpm pools run as user `apache`. This causes issues with things like log files, where (for example) pimpmylog expects logs to be owned by `apache`, when they're owned by `nginx`. Other goofy issues happen too, like `/var/log/php-fpm` being owned by `apache`.\r\n\r\nconfig.yml is fairly standard, set up for a local environment (no makes/builds). Relevant:\r\n```\r\n# The web server software to use. Can be either 'apache' or 'nginx'.\r\ndrupalvm_webserver: nginx\r\n```\r\nAfter ssh'ing into the newly built vm:\r\n```\r\n$ ps aux | grep nginx\r\nroot      1214  0.0  0.1  48084  1500 ?        Ss   13:50   0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf\r\nnginx     1215  0.0  0.2  48880  3008 ?        S    13:50   0:00 nginx: worker process\r\n```\r\nand\r\n```\r\n$ ps aux | grep apache\r\napache    1260  0.0  1.3 652112 14056 ?        S    13:50   0:00 php-fpm: pool www\r\napache    1261  0.0  1.2 652088 12328 ?        S    13:50   0:00 php-fpm: pool www\r\napache    1262  0.0  1.1 652152 11412 ?        S    13:50   0:00 php-fpm: pool www\r\napache    1263  0.0  1.6 652344 16432 ?        S    13:50   0:00 php-fpm: pool www\r\napache    1264  0.0  1.2 652152 12760 ?        S    13:50   0:00 php-fpm: pool www\r\n```\r\n\r\nI expect this might be a downstream problem with the geerlingguy.nginx role, but I haven't dug in enough to find out yet."},"comment":{"url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/comments/231563636","html_url":"https://github.com/geerlingguy/drupal-vm/issues/781#issuecomment-231563636","issue_url":"https://api.github.com/repos/geerlingguy/drupal-vm/issues/781","id":231563636,"user":{"login":"entendu","id":276273,"avatar_url":"https://avatars.githubusercontent.com/u/276273?v=3","gravatar_id":"","url":"https://api.github.com/users/entendu","html_url":"https://github.com/entendu","followers_url":"https://api.github.com/users/entendu/followers","following_url":"https://api.github.com/users/entendu/following{/other_user}","gists_url":"https://api.github.com/users/entendu/gists{/gist_id}","starred_url":"https://api.github.com/users/entendu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/entendu/subscriptions","organizations_url":"https://api.github.com/users/entendu/orgs","repos_url":"https://api.github.com/users/entendu/repos","events_url":"https://api.github.com/users/entendu/events{/privacy}","received_events_url":"https://api.github.com/users/entendu/received_events","type":"User","site_admin":false},"created_at":"2016-07-10T00:34:54Z","updated_at":"2016-07-10T00:34:54Z","body":"Interestingly, I tried doing this in config.yml and it did NOT overwrite the user. Any thoughts or debugging tips?"}}
{"actor":{"display_login":"entendu"}}