Skip to content

Commit

Permalink
Change wording
Browse files Browse the repository at this point in the history
Add a2en command to Apache2 config
  • Loading branch information
martbock committed Aug 7, 2018
1 parent 34c0465 commit c735fff
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions source/debian-installation-guide.blade.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,13 @@ If you don't use Certbot with Let's Encrypt certificates, you will probably need
</VirtualHost>
@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')
<VirtualHost *:80>
ServerName mum.example.com
Expand All @@ -164,6 +164,15 @@ leave out the `ServerName` directive.
</VirtualHost>
@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/).
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit c735fff

Please sign in to comment.