ST Hosting Manual

Our manual

Installation Apache2 web server

Installing Apache2 web server


General

If you want to use a website on your KVM VPS, you should install a web server which makes your content available to the broad masses of the internet via the HTTP protocol.

Important instructions for the tutorial

This tutorial is only for the Linux distribution Debian. The # implies by default that in most cases, a console-command has to be accomplished with root privileges.
The $ implies by default that this command can be accomplished with standard user-rights.

Installing the Apache Web server

Type the following commands into the SSH console to keep your system up to date:

#apt-get update
#apt-get upgrade

To install the Apache web server, please type in the following command:

#apt-get install apache2

If you enter now the IP or reverse of the KVM-VPS in the URL, you should receive "It works!", if that is the case, the web server was getting installed correctly.
All files which are accessible via the internet can be found at / var / www /

Installing PHP

To install PHP7 and the apache module for PHP5, type in the following command:/p>#apt-get install php7.0 libapache2-mod-php7.0

Now you should restart the Apache2 web server.

#/etc/init.d/apache2 restart

Now you have to opportunity to save any PHP file in / var / www and look it up via the web browser.