{"id":2327,"date":"2015-06-28T20:26:43","date_gmt":"2015-06-28T20:26:43","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=2327"},"modified":"2015-06-28T20:26:43","modified_gmt":"2015-06-28T20:26:43","slug":"enable-userdir-on-centos-vhosts","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2015\/06\/28\/enable-userdir-on-centos-vhosts\/","title":{"rendered":"Enable UserDir on CentOS vhosts"},"content":{"rendered":"<p>Edit the \/etc\/httpd\/conf\/httpd.conf file.<br \/>\nChange the \u2018UserDir disabled\u2019 line to \u2018UserDir enabled <username>\u2019.<br \/>\nUncomment the \u2018UserDir public_html\u2019 line.<br \/>\nAlso uncomment the whole \u2018<Directory \/home\/*\/public_html>\u2019 section until the \u2018<\/Directory>\u2019.<br \/>\nApply the proper permissions:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# chmod 711 ~&lt;username&gt;\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# chmod 755 -R ~&lt;username&gt;\/public_html\/\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n&lt;IfModule mod_userdir.c&gt;\n #\n # UserDir is disabled by default since it can confirm the presence\n # of a username on the system (depending on home directory\n # permissions).\n #\nUserDir enabled unixmenuser\n\n #\n # To enable requests to \/~user\/ to serve the user&#039;s public_html\n # directory, remove the &quot;UserDir disabled&quot; line above, and uncomment\n # the following line instead:\n #\n UserDir public_html\n\n&lt;\/IfModule&gt;\n\n&lt;Directory \/home\/*\/public_html&gt;\nOptions Indexes Includes FollowSymLinks\n##For  apache 2.2,Please use:\n\n AllowOverride All\n Allow from all\n Order deny,allow\n#For apache &gt;= 2.4,Please  use :\n  Require all granted\n\n&lt;\/Directory&gt;\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Edit the \/etc\/httpd\/conf\/httpd.conf file. Change the \u2018UserDir disabled\u2019 line to \u2018UserDir enabled \u2019. Uncomment the \u2018UserDir public_html\u2019 line. Also uncomment the whole \u2018\u2019 section until the \u2018\u2019. Apply the proper permissions: # chmod 711 ~&lt;username&gt; # chmod 755 -R ~&lt;username&gt;\/public_html\/ &lt;IfModule mod_userdir.c&gt; # # UserDir is disabled by default since it can confirm the presence &#8230; <a title=\"Enable UserDir on CentOS vhosts\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2015\/06\/28\/enable-userdir-on-centos-vhosts\/\" aria-label=\"Read more about Enable UserDir on CentOS vhosts\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2327","post","type-post","status-publish","format-standard","hentry","category-apache"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=2327"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2327\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=2327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=2327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=2327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}