{"action":"created","issue":{"url":"https://api.github.com/repos/gordalina/cachetool/issues/7","labels_url":"https://api.github.com/repos/gordalina/cachetool/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/gordalina/cachetool/issues/7/comments","events_url":"https://api.github.com/repos/gordalina/cachetool/issues/7/events","html_url":"https://github.com/gordalina/cachetool/issues/7","id":53588442,"number":7,"title":"cachetool via fcgi doesn't work if php-fpm starts with systemd unit  set to PrivateTmp=true","user":{"login":"jrobeson","id":56908,"avatar_url":"https://avatars.githubusercontent.com/u/56908?v=3","gravatar_id":"","url":"https://api.github.com/users/jrobeson","html_url":"https://github.com/jrobeson","followers_url":"https://api.github.com/users/jrobeson/followers","following_url":"https://api.github.com/users/jrobeson/following{/other_user}","gists_url":"https://api.github.com/users/jrobeson/gists{/gist_id}","starred_url":"https://api.github.com/users/jrobeson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrobeson/subscriptions","organizations_url":"https://api.github.com/users/jrobeson/orgs","repos_url":"https://api.github.com/users/jrobeson/repos","events_url":"https://api.github.com/users/jrobeson/events{/privacy}","received_events_url":"https://api.github.com/users/jrobeson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-01-07T01:57:15Z","updated_at":"2015-01-08T23:48:43Z","closed_at":"2015-01-08T23:46:23Z","body":"If the php-fpm systemd unit file has PrivateTmp=true and you run cachetool with this:\r\n\r\n```bash\r\ncachetool  opcache:status -vvv --fcgi /var/run/php-fpm/php-fpm.sock\r\n```\r\n \r\nthen you see this in the logs (snipped to the relevant part):\r\n\r\n```bash\r\n[2015-01-06 20:55:05] cachetool.DEBUG: Executing code: return extension_loaded('Zend OPcache'); [] []\r\n[2015-01-06 20:55:05] cachetool.INFO: FastCGI: Dumped code to file: /tmp/cachetool-54ac91f90c03f.php [] []\r\nobject(CacheTool\\Code)#82 (1) {\r\n  [\"code\":protected]=>\r\n  array(1) {\r\n    [0]=>\r\n    string(40) \"return extension_loaded('Zend OPcache');\"\r\n  }\r\n}\r\n[2015-01-06 20:55:05] cachetool.DEBUG: FastCGI: Response: {\"statusCode\":404,\"headers\":{\"status\":\"404 Not Found\",\"content-type\":\"text\\/html; charset=UTF-8\"},\"body\":\"File not found.\",\"stderr\":\"Primary script unknown\\n\"} [] []\r\n\r\n\r\n                          \r\n  [RuntimeException]      \r\n  Primary script unknown  \r\n```"},"comment":{"url":"https://api.github.com/repos/gordalina/cachetool/issues/comments/69271565","html_url":"https://github.com/gordalina/cachetool/issues/7#issuecomment-69271565","issue_url":"https://api.github.com/repos/gordalina/cachetool/issues/7","id":69271565,"user":{"login":"gordalina","id":787913,"avatar_url":"https://avatars.githubusercontent.com/u/787913?v=3","gravatar_id":"","url":"https://api.github.com/users/gordalina","html_url":"https://github.com/gordalina","followers_url":"https://api.github.com/users/gordalina/followers","following_url":"https://api.github.com/users/gordalina/following{/other_user}","gists_url":"https://api.github.com/users/gordalina/gists{/gist_id}","starred_url":"https://api.github.com/users/gordalina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gordalina/subscriptions","organizations_url":"https://api.github.com/users/gordalina/orgs","repos_url":"https://api.github.com/users/gordalina/repos","events_url":"https://api.github.com/users/gordalina/events{/privacy}","received_events_url":"https://api.github.com/users/gordalina/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T23:48:43Z","updated_at":"2015-01-08T23:48:43Z","body":"Fixed in 1.5.0"}}