{"id":5782,"date":"2018-09-30T13:43:40","date_gmt":"2018-09-30T10:43:40","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=5782"},"modified":"2018-09-30T13:43:40","modified_gmt":"2018-09-30T10:43:40","slug":"debian-derivatives-installation-example-uses-ln-s-instead-of-a2ensite","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2018\/09\/30\/debian-derivatives-installation-example-uses-ln-s-instead-of-a2ensite\/","title":{"rendered":"Debian derivatives installation example uses `ln -s` instead of `a2ensite`"},"content":{"rendered":"<p>Under\u00a0<a href=\"https:\/\/github.com\/nextcloud\/documentation\/blob\/02b666abc3397fd65c395fbeca800097e92daac4\/admin_manual\/installation\/source_installation.rst#apache-web-server-configuration\">Apache Web server configuration<\/a>, there&#8217;s a prompt to create a symlink to enable the newly created site:<\/p>\n<pre><code>ln -s \/etc\/apache2\/sites-available\/nextcloud.conf \/etc\/apache2\/sites-enabled\/nextcloud.conf\r\n<\/code><\/pre>\n<p>As the instructions in this section are written for Debian, Ubuntu, and their derivatives,\u00a0<a href=\"https:\/\/manpages.debian.org\/jessie\/apache2\/a2ensite.8.en.html\" rel=\"nofollow\"><code>a2ensite<\/code><\/a>\u00a0should be used instead:<\/p>\n<pre><code>a2ensite nextcloud.conf\r\n<\/code><\/pre>\n<p>The commands are currently functionally equivalent (AFAIK), but should this change sometime, the latter would be more future proof, besides being much shorter and easier to type.<\/p>\n<p>Additionally, immediately following the\u00a0<code>ln -s<\/code>\u00a0there is a\u00a0<a href=\"https:\/\/github.com\/nextcloud\/documentation\/blob\/02b666abc3397fd65c395fbeca800097e92daac4\/admin_manual\/installation\/source_installation.rst#additional-apache-configurations\">section about Additional Apache configurations<\/a>, which correctly instructs the use of\u00a0<a href=\"https:\/\/manpages.debian.org\/jessie\/apache2\/a2enmod.8.en.html\" rel=\"nofollow\"><code>a2enmod<\/code><\/a>\u00a0to create the symlinks. Replacing\u00a0<code>ln -s<\/code>\u00a0with\u00a0<code>a2ensite<\/code>would thus harmonize the two sections.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s a prompt to create a symlink to enable the newly created Apache site. Instructions for Debian derivatives should use a2ensite instead.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[13999,362,13996,2679],"class_list":["post-5782","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-apache","tag-debian","tag-nextcloud","tag-ubuntu","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=5782"}],"version-history":[{"count":1,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5782\/revisions"}],"predecessor-version":[{"id":5783,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5782\/revisions\/5783"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=5782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=5782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=5782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}