{"id":559,"date":"2021-02-15T12:00:00","date_gmt":"2021-02-15T17:00:00","guid":{"rendered":"https:\/\/molecularsciences.org\/content\/?p=559"},"modified":"2021-02-03T02:52:58","modified_gmt":"2021-02-03T07:52:58","slug":"how-to-find-apache-username-on-my-server","status":"publish","type":"post","link":"https:\/\/molecularsciences.org\/content\/how-to-find-apache-username-on-my-server\/","title":{"rendered":"How to find Apache username on my server"},"content":{"rendered":"\n<p>The easiest way find the process of an application running on the server is to type the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ps aux | grep 'apache'<\/code><\/pre>\n\n\n\n<p>This command would output a list of processes. \u00a0I can \u00a0see that the calling a \/usr\/sbin\/apache2 is www-data. So the username of apache is www-data.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>www-data \u00a04126 \u00a00.0 \u00a00.3 \u00a032404 14296 ? \u00a0 \u00a0 \u00a0 \u00a0S \u00a0 \u00a012:28 \u00a0 0:00 \/usr\/sbin\/apache2 -k start<br>www-data \u00a04132 \u00a00.0 \u00a00.1 \u00a026048 \u00a04520 ? \u00a0 \u00a0 \u00a0 \u00a0S \u00a0 \u00a012:28 \u00a0 0:00 \/usr\/sbin\/apache2 -k start<br>www-data \u00a04134 \u00a00.0 \u00a00.3 \u00a032512 13964 ? \u00a0 \u00a0 \u00a0 \u00a0S \u00a0 \u00a012:28 \u00a0 0:00 \/usr\/sbin\/apache2 -k start<br>www-data \u00a04135 \u00a00.0 \u00a00.1 \u00a026048 \u00a04516 ? \u00a0 \u00a0 \u00a0 \u00a0S \u00a0 \u00a012:28 \u00a0 0:00 \/usr\/sbin\/apache2 -k start<br>www-data \u00a04145 \u00a00.0 \u00a00.3 \u00a031892 12964 ? \u00a0 \u00a0 \u00a0 \u00a0S \u00a0 \u00a012:29 \u00a0 0:00 \/usr\/sbin\/apache2 -k start<br>&lt;\/pre>&lt;\/blockquote><\/code><\/pre>\n\n\n\n<p>Note the address \/usr\/sbin\/apache2 -k start. This indicates the command that launched the process. The first word of each process is its username. The username for apache is www-data.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The easiest way find the process of an application running on the server is to type the following command: This command would output a list of processes. \u00a0I can \u00a0see that the calling a \/usr\/sbin\/apache2 is www-data. So the username of apache is www-data. Note the address \/usr\/sbin\/apache2 -k start. This indicates the command that [&hellip;]<\/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],"class_list":["post-559","post","type-post","status-publish","format-standard","hentry","category-linux","tag-apache","tag-linux"],"_links":{"self":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/559","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=559"}],"version-history":[{"count":1,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/559\/revisions"}],"predecessor-version":[{"id":560,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/559\/revisions\/560"}],"wp:attachment":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media?parent=559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/categories?post=559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/tags?post=559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}