# Preparation



# Server Image Installation

## Server Image Installation

1. Browse to [**konsoleH**](http://myaccount.hetzner.co.za/) and **log in** at[ Admin level](https://hetzner.co.za/help-centre/accounts-and-payments/konsoleh-access-levels/)
2. Select or search for your Self-Managed server in the **Hosting Service** tab
3. Select **Linux Install** under **Recovery Tools** from the left-hand menu  
    [![01.png](https://docs.azandi.co.za/uploads/images/gallery/2020-04/scaled-1680-/tXAzvF7hyysFmwgM-01.png)](https://docs.azandi.co.za/uploads/images/gallery/2020-04/tXAzvF7hyysFmwgM-01.png)
4. Select the distribution of the **installation** that you wish to activate  
    [![02.png](https://docs.azandi.co.za/uploads/images/gallery/2020-04/scaled-1680-/YuubYLzVdKwgSl5n-02.png)](https://docs.azandi.co.za/uploads/images/gallery/2020-04/YuubYLzVdKwgSl5n-02.png)
5. Select **Activate** on the top right-hand side
6. **Reboot** your server within 10 minutes via the RMM / IPMI device
7. During the server startup process, you have the option to reconfigure your RAID (TruServ Commerce only) via the RAID controller bios.
8. The server will boot into the OS installation environment you selected in step 4
9. Follow the onscreen prompts to install your OS and configure your disks and partition layout
10. Once the install is complete your server will reboot into your installed OS and will be accessible
11. Access your server with the user(s) configured via SSH (some Linux distributions do not allow root logins by default over SSH).

# Add Additional Repositories

## Install additional repositories

### Additional Repositories

1. Using the commands below, install the Epel and PHP repositories:

```
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
```

### MySQL Repository

##### Replace MariaDB with MySQL

1. Navigate to [https://dev.mysql.com/downloads/repo/yum/](https://dev.mysql.com/downloads/repo/yum/)
2. Select the correct package corresponding to the version running on the server and click download.
3. Scroll down to 'No thanks, just start my download' and right click on the link.
4. Click 'Copy link address.'
5. Run the command below to install the MySQL repository.

```
yum localinstall 'link address copied from MySQL website'
```

##### Enable the correct release series

1. Manually edit the '/etc/yum.repos.d/mysql-community.repo' file with your favorite text editor.
2. Specify enabled=0 to disable a subrepository, or enabled=1 to enable a subrepository, see example below to enable MySQL 5.6 and disable MySQL 5.7 series.

```
# Enable to use MySQL 5.6 & Disabled MySQL 5.7
[mysql56-community]
name=MySQL 5.6 Community Serverbaseurl=http://repo.mysql.com/yum/mysql-5.6-
community/el/6/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
[mysql57-community]
name=MySQL 5.7 Community Serverbaseurl=http://repo.mysql.com/yum/mysql-5.7-
community/el/6/$basearch/
enabled=0
gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
```

<p class="callout info">Note: When sub repositories for more than one release series are enabled, the latest series will be used by Yum.</p>

