{"id":458,"date":"2015-07-02T18:41:17","date_gmt":"2015-07-02T23:41:17","guid":{"rendered":"http:\/\/muthii.com\/blog\/?p=458"},"modified":"2016-01-11T22:00:22","modified_gmt":"2016-01-12T03:00:22","slug":"owncloud-error-console-has-to-be-executed-with-the-same-user-as-the-web-server-is-operated","status":"publish","type":"post","link":"https:\/\/muthii.com\/blog\/?p=458","title":{"rendered":"Owncloud Error: Console has to be executed with the same user as the web server is operated"},"content":{"rendered":"<p>After a recent Owncloud 8.o.x update I started getting this error being logged whenever the owncloud cron job run. To resolve the issue I had to change the cron job to be run as the user apache.<\/p>\n<p><code lang=\"bash\">su -s \/bin\/sh apache -c  \"php -f \/path\/to\/owncloud\/cron.php\"<\/code><\/p>\n<p>The webserver on CentOS is run under the user apache, on other linux flavous it&#8217;s www-data to find out what it is on your system just check the error being logged it will log the user running the webserver.<\/p>\n<p><code><br \/>\nConsole has to be executed with the same user as the web server is operated<br \/>\nCurrent user: someuser<br \/>\nWeb server user: apache <- This is the user you want.\nUnexpected error!\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After a recent Owncloud 8.o.x update I started getting this error being logged whenever the owncloud cron job run. To resolve the issue I had to change the cron job to be run as the user apache. su -s \/bin\/sh apache -c &#8220;php -f \/path\/to\/owncloud\/cron.php&#8221; The webserver on CentOS is run under the user apache, &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/muthii.com\/blog\/?p=458\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Owncloud Error: Console has to be executed with the same user as the web server is operated&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[102,83],"tags":[142],"_links":{"self":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/458"}],"collection":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=458"}],"version-history":[{"count":10,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/458\/revisions"}],"predecessor-version":[{"id":489,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/458\/revisions\/489"}],"wp:attachment":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}