{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/25973","repository_url":"https://api.github.com/repos/owncloud/core","labels_url":"https://api.github.com/repos/owncloud/core/issues/25973/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/25973/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/25973/events","html_url":"https://github.com/owncloud/core/issues/25973","id":173809695,"number":25973,"title":"Make cli version of PHP used by Updater configurable","user":{"login":"timreeves","id":6383327,"avatar_url":"https://avatars.githubusercontent.com/u/6383327?v=3","gravatar_id":"","url":"https://api.github.com/users/timreeves","html_url":"https://github.com/timreeves","followers_url":"https://api.github.com/users/timreeves/followers","following_url":"https://api.github.com/users/timreeves/following{/other_user}","gists_url":"https://api.github.com/users/timreeves/gists{/gist_id}","starred_url":"https://api.github.com/users/timreeves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timreeves/subscriptions","organizations_url":"https://api.github.com/users/timreeves/orgs","repos_url":"https://api.github.com/users/timreeves/repos","events_url":"https://api.github.com/users/timreeves/events{/privacy}","received_events_url":"https://api.github.com/users/timreeves/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/95","html_url":"https://github.com/owncloud/core/milestones/9.0.6","labels_url":"https://api.github.com/repos/owncloud/core/milestones/95/labels","id":1896108,"number":95,"title":"9.0.6","description":null,"creator":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":2,"state":"open","created_at":"2016-07-21T09:55:18Z","updated_at":"2016-09-01T21:13:49Z","due_on":"2016-09-20T04:00:00Z","closed_at":null},"comments":18,"created_at":"2016-08-29T16:03:15Z","updated_at":"2016-09-05T17:20:27Z","closed_at":null,"body":"### Steps to reproduce\r\n1. Install (or update to) 9.0.4 OR 9.1.0 on a server running Ubuntu 12.04 LTS OR 14.04 LTS\r\n2. It must also be running under Plesk 12.5 with alternative PHP version 7.0\r\n3. The GUI is powered by Nginx + PHP-FPM, using the Plesk-PHP 7.0.9\r\n4. Call Updater from the Web Admin page\r\n\r\n### Expected behaviour\r\nThe Updater should work, and use the PHP 7.0.9, which is available on the host\r\n\r\n### Actual behaviour\r\nThe Updater says: [UnexpectedValueException]\r\nCould not parse a response for config:list. Please check if the current shell user can run occ command. Raw output: Not allowed\r\n\r\nSo it looks to me as if the Updater is using the standard OS-PHP, which no doubt cannot understand the PHP of OC.\r\n\r\nMy wish/suggestion is: To be able to add a config statement re the version of PHP to use for executing external PHP commands. No doubt you know that here in Germany many Hosters like HostEurope, Strato, Hetzner etc. offer Plesk, so it would be great to have this option. Otherwise, I have to tell my clients that they need a new server - something they don't want to hear )-:\r\nUPDATE: Turns out, on later trials with Ubuntu 14.04, that PHP 5.3 was NOT the problem.\r\n\r\n### Server configuration\r\nUbuntu 12.04 OR 14.04 LTS\r\n\r\n**Web server:**\r\nNginx (from Plesk - 1.11.1)\r\n\r\n**Database:**\r\nMySQL\r\n\r\n**PHP version:**\r\nOS = 5.3.10 / 5.5.9, Plesk = 7.0.9 (at /opt/plesk/php/7.0/bin/php)\r\n\r\n**ownCloud version:**\r\n9.0.4 OR 9.1.0\r\n\r\n**Updated from an older ownCloud or fresh install:**\r\nUpdated\r\n\r\n**Where did you install ownCloud from:**\r\nFrom Source-Zip, via CLI\r\n\r\n**Signing status (ownCloud 9.0 and above):**\r\nNo errors have been found.\r\n\r\n**List of activated apps:**\r\nEnabled:\r\n  - activity: 2.2.1\r\n  - calendar: 1.3.3\r\n  - contacts: 1.3.1.0\r\n  - dav: 0.1.6\r\n  - federatedfilesharing: 0.1.0\r\n  - files: 1.4.4\r\n  - files_external: 0.5.2\r\n  - files_trashbin: 0.8.0\r\n  - notifications: 0.2.3\r\n  - updatenotification: 0.1.0\r\n\r\nDisabled:\r\n  - comments\r\n  - encryption\r\n  - external\r\n  - federation\r\n  - files_pdfviewer\r\n  - files_sharing\r\n  - files_texteditor\r\n  - files_versions\r\n  - files_videoplayer\r\n  - firstrunwizard\r\n  - gallery\r\n  - provisioning_api\r\n  - systemtags\r\n  - templateeditor\r\n  - user_external\r\n  - user_ldap\r\n\r\n**The content of config/config.php:**\r\n{\r\n    \"system\": {\r\n        \"instanceid\": \"oc452bf87cea\",\r\n        \"passwordsalt\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"trusted_domains\": [\r\n            \"owncloud.biblische-reisen.de\"\r\n        ],\r\n        \"datadirectory\": \"\\/var\\/www\\/vhosts\\/biblische-reisen.de\\/oc-data\",\r\n        \"dbtype\": \"mysql\",\r\n        \"version\": \"9.0.4.1\",\r\n        \"dbname\": \"owncloudbde\",\r\n        \"dbhost\": \"localhost\",\r\n        \"dbtableprefix\": \"oc_\",\r\n        \"dbuser\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"dbpassword\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"installed\": true,\r\n        \"loglevel\": 4,\r\n        \"forcessl\": true,\r\n        \"theme\": \"\",\r\n        \"maintenance\": false,\r\n        \"mail_from_address\": \"owncloud\",\r\n        \"mail_domain\": \"biblische-reisen.de\",\r\n        \"mail_smtpmode\": \"php\",\r\n        \"mail_smtpname\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"mail_smtppassword\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"default_language\": \"en\",\r\n        \"secret\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"log_rotate_size\": 10485760,\r\n        \"check_for_working_wellknown_setup\": false,\r\n        \"check_for_working_htaccess\": false,\r\n        \"memcache.local\": \"\\\\OC\\\\Memcache\\\\APCu\",\r\n        \"filelocking.enabled\": \"true\",\r\n        \"memcache.locking\": \"\\\\OC\\\\Memcache\\\\Redis\",\r\n        \"redis\": {\r\n            \"host\": \"\\/var\\/run\\/redis\\/redis.sock\",\r\n            \"port\": 0,\r\n            \"timeout\": 0,\r\n            \"dbindex\": 1\r\n        },\r\n        \"trashbin_retention_obligation\": \"auto\",\r\n        \"updater.secret\": \"***REMOVED SENSITIVE VALUE***\"\r\n    }\r\n}\r\n\r\n**Are you using external storage**\r\nNo\r\n\r\n**Are you using encryption:**\r\nNo\r\n\r\n**Are you using an external user-backend, if yes which one:**\r\nNo\r\n\r\n### Client configuration\r\n**Browser:**\r\nFirefox\r\n\r\n**Operating system:**\r\nWindows 10\r\n\r\n### Logs\r\n#### Web server error log\r\n```\r\nInsert your webserver log here\r\nLog is empty.\r\n\r\n#### ownCloud log (data/owncloud.log)\r\nLog is empty.\r\n\r\n#### Browser log\r\n17:55:21.680 Content Security Policy: Die Direktive 'frame-src'  sollte nicht mehr verwendet werden. Bitte verwenden Sie stattdessen die Direktive 'child-src'.(unbekannt)\r\n17:55:23.842 Content Security Policy: Die Einstellungen der Seite haben das Laden einer Ressource auf self blockiert (\"script-src https://owncloud.biblische-reisen.de 'unsafe-eval'\").admin\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/244789086","html_url":"https://github.com/owncloud/core/issues/25973#issuecomment-244789086","issue_url":"https://api.github.com/repos/owncloud/core/issues/25973","id":244789086,"user":{"login":"timreeves","id":6383327,"avatar_url":"https://avatars.githubusercontent.com/u/6383327?v=3","gravatar_id":"","url":"https://api.github.com/users/timreeves","html_url":"https://github.com/timreeves","followers_url":"https://api.github.com/users/timreeves/followers","following_url":"https://api.github.com/users/timreeves/following{/other_user}","gists_url":"https://api.github.com/users/timreeves/gists{/gist_id}","starred_url":"https://api.github.com/users/timreeves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timreeves/subscriptions","organizations_url":"https://api.github.com/users/timreeves/orgs","repos_url":"https://api.github.com/users/timreeves/repos","events_url":"https://api.github.com/users/timreeves/events{/privacy}","received_events_url":"https://api.github.com/users/timreeves/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T17:20:27Z","updated_at":"2016-09-05T17:20:27Z","body":"Your suspicion was correct: Raw output: Web executor is not allowed to run from a different host\r\n\r\nAlso, I added your code from further above now ABOVE the line throwing the exception and get this in my OC log:\r\n\r\n{\"reqId\":\"LanE7kdpDc8MVQJmFTPX\",\"remoteAddr\":\"176.28.16.171\",\"app\":\"core\",\"message\":\"occ controller requested from location \\\"176.28.16.171\\\"\",\"level\":2,\"time\":\"2016-09-05T17:12:08+00:00\",\"method\":\"POST\",\"url\":\"\\/index.php\\/occ\\/config:list\r\n\",\"user\":\"--\"}\r\n\r\nHA: 176.28.16.171 is the external IP of my Server - is there some way you (or the core author involved) can find that out and allow it through also? But beware: I have FIVE IP's on that server, assigned via Plesk to different domains, so I can use reverse DNS on them for optimal SEO. On that server, luckily ownCloud is on the basic IP of the server, but other users may have it on a secondary IP - I think basically we need either the IP of the Domain in use, failing that any IP assigned to the server.\r\n\r\n"}}
{"actor":{"display_login":"timreeves"}}