From c735fff2c97bf26794c93815182210ef2e725199 Mon Sep 17 00:00:00 2001 From: Martin Bock Date: Tue, 7 Aug 2018 11:17:21 +0200 Subject: [PATCH] Change wording Add a2en command to Apache2 config --- source/debian-installation-guide.blade.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/source/debian-installation-guide.blade.md b/source/debian-installation-guide.blade.md index dedfefe..cf3143a 100644 --- a/source/debian-installation-guide.blade.md +++ b/source/debian-installation-guide.blade.md @@ -148,13 +148,13 @@ If you don't use Certbot with Let's Encrypt certificates, you will probably need @endcomponent -The last step is to redirect all clients that use HTTP on port 80 to HTTPS on port 443. +Now we need to redirect all clients that use HTTP on port 80 to HTTPS on port 443. To do that, you could either add a second `VirtualHost` definition in your configuration file or create a second file that only holds your HTTP host(s). If you want to redirect HTTP traffic for all your virtual hosts, leave out the `ServerName` directive. @component('_components.code_file') -@slot('filename', '/etc/apache2/sites-available/http-mum.example.com.conf') +@slot('filename', '/etc/apache2/sites-available/mum.example.com-http.conf') @slot('lang', 'apacheconf') ServerName mum.example.com @@ -164,6 +164,15 @@ leave out the `ServerName` directive. @endcomponent +The last step is to enable the new VirtualHost in Apache2. Please use your actual domain +or rather the name of your `.conf` file. What this command does is to create a symbolic +link from `/etc/sites-enabled/mum.example.com.conf` to `/etc/sites-available/mum.example.com.conf`. + +@component('_components.code') +@slot('lang', 'bash') +sudo a2ensite mum.example.com +@endcomponent + ## Installing Composer The next thing we need is the PHP dependency manager [Composer](https://getcomposer.org/). @@ -253,6 +262,14 @@ DB_USERNAME=mum DB_PASSWORD=my_secret_password_1 @endcomponent +Another important step is to migrate the database. That means we are going to create the +necessary tables in our database. + +@component('_components.code') +@slot('lang', 'bash') +php artisan migrate +@endcomponent + ## Creating Your First User Since MUM does not have a web installer yet, you will need to use console commands to create your first user in MUM.