{"action":"created","issue":{"url":"https://api.github.com/repos/kyrofa/owncloud-snap/issues/22","repository_url":"https://api.github.com/repos/kyrofa/owncloud-snap","labels_url":"https://api.github.com/repos/kyrofa/owncloud-snap/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/kyrofa/owncloud-snap/issues/22/comments","events_url":"https://api.github.com/repos/kyrofa/owncloud-snap/issues/22/events","html_url":"https://github.com/kyrofa/owncloud-snap/pull/22","id":145370501,"number":22,"title":"make it use php-fpm","user":{"login":"jospoortvliet","id":551757,"avatar_url":"https://avatars.githubusercontent.com/u/551757?v=3","gravatar_id":"","url":"https://api.github.com/users/jospoortvliet","html_url":"https://github.com/jospoortvliet","followers_url":"https://api.github.com/users/jospoortvliet/followers","following_url":"https://api.github.com/users/jospoortvliet/following{/other_user}","gists_url":"https://api.github.com/users/jospoortvliet/gists{/gist_id}","starred_url":"https://api.github.com/users/jospoortvliet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jospoortvliet/subscriptions","organizations_url":"https://api.github.com/users/jospoortvliet/orgs","repos_url":"https://api.github.com/users/jospoortvliet/repos","events_url":"https://api.github.com/users/jospoortvliet/events{/privacy}","received_events_url":"https://api.github.com/users/jospoortvliet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-02T12:55:58Z","updated_at":"2016-04-02T13:16:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kyrofa/owncloud-snap/pulls/22","html_url":"https://github.com/kyrofa/owncloud-snap/pull/22","diff_url":"https://github.com/kyrofa/owncloud-snap/pull/22.diff","patch_url":"https://github.com/kyrofa/owncloud-snap/pull/22.patch"},"body":"So I thought enabling fpm wouldn't be so hard ;-)\r\n\r\nWhat a deep hole I found myself in... Anybody around here willing to dig in with me?\r\n\r\nThe basics are there but I haven't yet tested it. what is missing, for sure, is the init part - I'm not sure how to get an init script working.\r\n\r\nWhat does this do?\r\n* compile php-fpm in (in the snapcraft)\r\n* make sure it starts as daemon (in the snapcraft)\r\n* configure php-fpm (adding a config file)\r\n* enable using php-fpm in apache (in the apache_config file)\r\n\r\nI have not yet tested it so the chances this work are around freezing point. I did get it to work on my own server but that doesn't run snappy atm.\r\n\r\n@kyrofa @oparoz @ezraholm @enoch85 what do you think, could any of you give this a try perhaps?\r\n"},"comment":{"url":"https://api.github.com/repos/kyrofa/owncloud-snap/issues/comments/204715047","html_url":"https://github.com/kyrofa/owncloud-snap/pull/22#issuecomment-204715047","issue_url":"https://api.github.com/repos/kyrofa/owncloud-snap/issues/22","id":204715047,"user":{"login":"oparoz","id":323220,"avatar_url":"https://avatars.githubusercontent.com/u/323220?v=3","gravatar_id":"","url":"https://api.github.com/users/oparoz","html_url":"https://github.com/oparoz","followers_url":"https://api.github.com/users/oparoz/followers","following_url":"https://api.github.com/users/oparoz/following{/other_user}","gists_url":"https://api.github.com/users/oparoz/gists{/gist_id}","starred_url":"https://api.github.com/users/oparoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oparoz/subscriptions","organizations_url":"https://api.github.com/users/oparoz/orgs","repos_url":"https://api.github.com/users/oparoz/repos","events_url":"https://api.github.com/users/oparoz/events{/privacy}","received_events_url":"https://api.github.com/users/oparoz/received_events","type":"User","site_admin":false},"created_at":"2016-04-02T13:16:27Z","updated_at":"2016-04-02T13:16:27Z","body":">No need to worry about users-- all Snappy services run as root. In typical\r\nLinux installations this would obviously be dangerous, but in the case of\r\nSnappy the services are very confined.\r\n\r\nSo a PHP application is root and can wipe the entire writeable folder?"}}