apache installation steps
apache installation steps
#create an "empty” bridge, add eth0 to the bridge, set static IP and reactivate
the whole configuration
nmcli connection add type bridge con-name cloudbr0 ifname cloudbr0
nmcli connection modify eth0 master cloudbr0
nmcli connection up eth0
nmcli connection modify cloudbr0 ipv4.addresses '172.16.10.2/24' ipv4.gateway
'172.16.10.1' ipv4.dns '8.8.8.8' ipv4.method manual && nmcli connection up
cloudbr0
# reboot
# hostname --fqdn
To rectify this situation - we’ll set the hostname so that it follows a similar format to this example:
hostnamectl set-hostname server.local --static
# reboot
To configure SELinux to be permissive in the running system we need to run the following
command:
# setenforce 0
To ensure that it remains in that state we need to configure the file /etc/selinux/config to reflect the
permissive state, as shown in this example:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=permissive
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
NTP (Chrony)
NTP configuration is a necessity for keeping all of the clocks in your cloud servers in sync.
However, NTP is not installed by default. So we’ll install and and configure NTP at this stage.
Installation is accomplished as follows:
# dnf -y install chrony
To add the CloudStack repository, create /etc/yum.repos.d/cloudstack.repo and insert the following
information.
[cloudstack]
name=cloudstack
baseurl=http://download.cloudstack.org/centos/$releasever/4.20/
enabled=1
gpgcheck=0
*****************************************Optional*******************************
If you signed your Release file with GnuPG, import the signing key on your target system first.
$ wget -q -O - http://<server.url>/cloudstack/repo/binary/KEY.gpg | sudo apt-key
add -
****************************************For Ubuntu/Debian***********************
For simplicity, we need to disable the firewall, so that it will not block
connections.
We’ll start with installing MySQL and configuring some options to ensure it runs well with
CloudStack.
# dnf -y install mysql-server
This should install MySQL 8.x, as of the time of writing this guide. With MySQL now installed we
need to make a few configuration changes to /etc/my.cnf.d/mysql-server.cnf. Specifically, we need
to add the following options to the [mysqld] section:
innodb_rollback_on_timeout=1
innodb_lock_wait_timeout=600
max_connections=350
log-bin=mysql-bin
binlog-format = 'ROW'
# cloudstack-setup-management