Quest 2 – Linux to Unix – CentOS 7.3 to OpenBSD 6.1 – Part 1 – Planning and Installation
Due to recent cyber security vulnerabilities I have chosen to halt Quest 1 blog and dive right into Quest 2.
In doing so, we can re-create and move our CentOS 7.3 Web Stack over to OpenBSD 6.1 and continue down the same path as Quest 1; only much more secure and without a web panel. (We will not be using Virtualmin or Virtualmin Pro in Quest 2) — Except for needed migration/move tasks.
In conjunction with OpenBSD 6.1 Web Server Stack, we will be combining pfSense CE 2.3.4 (which will serve as a redundant DNS server, along with added security features we can implement at any given time).
Just like before, we will be using CloudSigma as our Cloud Web Host Povider:
Affordable Dynamically Adjustable Linux/Unix VPS Cloud Web Hosting: CloudSigma
Sign-Up Here for Affordable and Easy to use Linux/Unix VPS Cloud Web Hosting
Affordable Easy to Manage SSL Provider: SSLDragon
Sign-Up Here for Affordable and Easy to Manage SSL Certificates
Domain Registrar: Dynadot
Sign-Up Here for Affordable and Easy to use Domain Registrar
The first thing I have already done prior to starting this first blog entry has been to divide the 1 Virtual Server with the following stats:
4.4 GHZ AMD / 8GB / 10 IP’s + VLAN Adapter (CentOS 7.3 Prior)
into :
2.2 GHZ AMD / 4GB / 9 IP’s (CentOS 7.3 Current)
and then created the following OpenBSD 6.1 server:
2.2 GHZ AMD / 4GB / 1 IP + VLAN Adapter (OpenBSD 6.1 Current)
Let’s begin by firing up our newly created OpenBSD 6.1 Virtual Server with our installation disc image (*.iso) file that we downloaded from OpenBSD.org :
Re-tracing my steps (Hard Paper Notebook) I will get everyone up to speed.
Installation of OpenBSD 6.1:
Install as (W)hole partitioning -> (A)uto Layout
Sets -> HTTP
http://www.mirrorservice.org (Without the http://)
“all” (Selected Sets)
enter
(Downloads packages [Base packages] ) …
Another (2nd prompt at completion) [DONE]
Choose “done” by enter
Now we should be looking at a unix console session:
Let’s type the following commands:
Set package repository FTP/HTTP server path:
PKG_PATH=”ftp://ftp3.usa.openbsd.org/pub/OpenBSD/6.1/packages/amd64/”
Commit the package repository server path change:
export PKG_PATH
Install nano editor:
pkg_add nano
Install Apache Web Server:
pkg_add apache-httpd
(Apache 2.4.25 at the time of my installation) — Publically Marked “Secure”.
“rcscripts” Location –> /etc/rc.d/apache2
Install cmake:
pkg_add cmake
Install wget:
pkg_add wget
Install bash:
pkg_add bash
Install git:
pkg_add git
rc scripts Location paths:
“rcscripts” Location –> /etc/rc.d/gitdaemon
“rcscripts” Location –> /etc/rc.d/rsyncd
Install NGINX:
pkg_add nginx
(NGINX 1.10.2p2 at the time of installation).
rc scripts Location paths:
“rcscripts” Location –> /etc/rc.d/nginx
Install Varnish:
pkg_add varnish
(Varnish 5.1.1 at the time of installation).
rc scripts Location paths:
“rcscripts” Location –> /etc/rc.d/varnishd
Install MariaDB:
pkg_add mariadb-server
Configure MariaDB:
Finalize the MariaDB Installation:
mysql_install_db
Start MariaDB:
/etc/rc.d/mysqld start
MySQL Secure Installation (Set your Root Password and Secure Things) :
mysql_secure_installation
QUEST 2 : Lightning Fast Secure Unix Cloud Web Structure (Budget to Scale)(STRUCTURED INDEX)
Part 1 – OpenBSD 6.1 Planning and Installation – QUEST 2 : Lightning Fast Secure Unix Cloud Web Structure (Budget to Scale)
Article Sources:
RootBSD | Installing OpenBSD’s httpd server, MariaDB, PHP 5.6 on OpenBSD 5.9