From: Antonio Ospite Date: Wed, 14 Mar 2018 11:38:01 +0000 (+0100) Subject: drin.rst: add a note about the web server configuration for userdirs X-Git-Tag: v0.1.2~6 X-Git-Url: https://git.ao2.it/drupal-init-tools.git/commitdiff_plain/37c9cf9b94228276512589c68f75ef676ed6b300?ds=inline drin.rst: add a note about the web server configuration for userdirs --- diff --git a/drin.rst b/drin.rst index becb8c3..b2effe9 100644 --- a/drin.rst +++ b/drin.rst @@ -122,6 +122,64 @@ The settings in the `bootstrap.conf` file have to be adjusted according to how super-user access has been configured. +NOTES ON WEB SERVER SETUP +========================= + +The `bootstrap` command in `drupal-init-tools` supports installing new sites +in *user dirs*; this means that users can have the Drupal sites in their home +directories, usually under the `public_html/` sub-directory. + +This may make development more comfortable, as new work can be done in the +usual development environment (git and ssh configuration, editor settings, +etc.). + +To configure the Apache web server to enable *user dirs*, first enable the +module: + +:: + + sudo a2enmod userdir + +And then make sure that the configuration is compatible with Drupal, changes +like the following may be necessary, depending on the distribution: + +:: + + diff --git a/apache2/mods-available/php7.2.conf b/apache2/mods-available/php7.2.conf + index d4df3e5..0758ea6 100644 + --- a/apache2/mods-available/php7.2.conf + +++ b/apache2/mods-available/php7.2.conf + @@ -18,8 +18,8 @@ + # To re-enable PHP in user directories comment the following lines + # (from to .) Do NOT set it to On as it + # prevents .htaccess files from disabling it. + - + - + - php_admin_flag engine Off + - + - + +# + +# + +# php_admin_flag engine Off + +# + +# + diff --git a/apache2/mods-available/userdir.conf b/apache2/mods-available/userdir.conf + index 2c334ec..737abdf 100644 + --- a/apache2/mods-available/userdir.conf + +++ b/apache2/mods-available/userdir.conf + @@ -3,7 +3,7 @@ + UserDir disabled root + + + - AllowOverride FileInfo AuthConfig Limit Indexes + + AllowOverride FileInfo AuthConfig Limit Indexes Options + Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec + Require method GET POST OPTIONS + + +These changes are typically only applied once, after the first installation of +the web server. + SEE ALSO ========