{"id":274,"date":"2020-07-14T01:01:58","date_gmt":"2020-07-14T01:01:58","guid":{"rendered":"https:\/\/molecularsciences.org\/content\/?p=274"},"modified":"2020-12-14T01:03:02","modified_gmt":"2020-12-14T01:03:02","slug":"what-user-is-apache-running-as","status":"publish","type":"post","link":"https:\/\/molecularsciences.org\/content\/what-user-is-apache-running-as\/","title":{"rendered":"What user is apache running as?"},"content":{"rendered":"\n<p>You often need to know the username of Apache to assign proper permissions to certain files it will be accessing. To find out:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ps aux | egrep '(apache|httpd)'<\/code><\/pre>\n\n\n\n<p>You will probably see multiple users. Ignore the root. Go with the other name. It is usually www-data in Ubuntu.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You often need to know the username of Apache to assign proper permissions to certain files it will be accessing. To find out: You will probably see multiple users. Ignore the root. Go with the other name. It is usually www-data in Ubuntu.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[57,35,51],"class_list":["post-274","post","type-post","status-publish","format-standard","hentry","category-linux","tag-apache","tag-linux","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/274","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/comments?post=274"}],"version-history":[{"count":1,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/274\/revisions"}],"predecessor-version":[{"id":275,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/274\/revisions\/275"}],"wp:attachment":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media?parent=274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/categories?post=274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/tags?post=274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}