Skip to content

Commit

Permalink
Update debian installation guide slightly
Browse files Browse the repository at this point in the history
Remove section about git, include git in prerequisites
Add `sudo` to a few commands
  • Loading branch information
martbock committed Jul 31, 2018
1 parent 4cad539 commit 3db5e42
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions source/debian-installation-guide.blade.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Make sure your system is up-to-date and you have installed the following package
@component('_components.code')
@slot('lang', 'bash')
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install unzip curl wget acl
sudo apt-get install unzip curl wget acl git
@endcomponent


Expand All @@ -40,7 +40,7 @@ The following commands should be executed with root privileges (use `sudo` or lo

@component('_components.code')
@slot('lang', 'bash')
apt-get install php7.2 php7.2-mbstring php7.2-xml php7.2-zip \
sudo apt-get install php7.2 php7.2-mbstring php7.2-xml php7.2-zip \
php7.2-cli php7.2-common php7.2-curl php7.2-json php7.2-mysql php7.2-opcache
@endcomponent

Expand All @@ -59,11 +59,13 @@ Firstly, we need to install a database server. We are going to use MariaDB here.

@component('_components.code')
@slot('lang', 'bash')
apt-get install mariadb-server
sudo apt-get install mariadb-server
sudo mysql -u root
@endcomponent

Secondly, we need to create the database and several users. Please choose **secure** passwords for your users.
[Diceware](https://www.eff.org/dice) is one way of generating secure passwords that are easily typeable and memorable.
The last command opened a MySQL shell. Now, we need to create the database and several users.
Please choose **secure** passwords for your users. [Diceware](https://www.eff.org/dice) is one way of
generating secure passwords that are easily typeable and memorable.

@component('_components.code')
@slot('lang', 'sql')
Expand All @@ -76,6 +78,8 @@ GRANT SELECT ON mum.* TO mum_postfix@localhost;
GRANT SELECT ON mum.* TO mum_dovecot@localhost;
@endcomponent

To exit the MySQL shell, simply type `exit;`.


## Configuring Apache2

Expand Down Expand Up @@ -112,7 +116,7 @@ We are going to use `mum.example.com` here, please change that name to your doma

@component('_components.code')
@slot('lang', 'bash')
nano /etc/apache2/sites-available/mum.example.com.conf
sudo nano /etc/apache2/sites-available/mum.example.com.conf
@endcomponent

Inside this configuration file we need to specify a virtual host that listens on port 443.
Expand Down Expand Up @@ -160,16 +164,6 @@ leave out the `ServerName` directive.
</VirtualHost>
@endcomponent

## Installing Git

To be able to clone MUM from GitHub, make sure you have `git` installed on your machine.
If you haven't, execute the following command to install it:

@component('_components.code')
@slot('lang', 'bash')
apt-get install git
@endcomponent

## Installing Composer

The next thing we need is the PHP dependency manager [Composer](https://getcomposer.org/).
Expand Down

0 comments on commit 3db5e42

Please sign in to comment.