Apache 2.2 vs 2.4: http://httpd.apache.org/docs/2.4/upgrading.html#access

apache2-utils is prerequisite:

$ sudo apt-get install apache2-utils
$ htpasswd -c .htpasswd your-user-name
$ htpasswd .htpasswd all-other-user-names
$ dpkg-reconfigure tzdata
$ sudo a2enmod rewrite
$ sudo apt-get install php-curl #https://stackoverflow.com/a/35035211/946957
$ sudo apt-get install php7.0-gd #https://stackoverflow.com/a/39678912/946957
$ sudo apt-get install landscape-common

ModSSL is required for SSL to function on Apache!

$ sudo a2enmod ssl

The headers module is described further on our securing SSL tutorial

$ sudo a2enmod headers
$ sudo apt-get install ipset -y
$ sudo apt-get install dos2unix
$ sudo apt-get install php-xml
$ sudo service apache2 restart
$ sudo a2enmod expires
$ nano /etc/mysql/mysql.cnf
# Allow 0000-00-00 as default dates: https://stackoverflow.com/a/36374690/946957
# Make sql-mode permanent:  https://stackoverflow.com/a/33475860/946957
# https://dev.mysql.com/doc/refman/5.7/en/server-options.html#option_mysqld_sql-mode

[mysqld]
sql-mode=""
strict mode references:
How to make sql-mode=”” permanent in MySQL my.cnf
How can I set the default value of a field as ‘0000-00-00 00:00:00’?
Error in mysql when setting default value for DATE or DATETIME