In this tutorial will install Apache on CentOS 7 and will secure and harden the Apache web server after.
yum install httpd
systemctl start httpd
Now test the Apache default page by using the server ip, you should get something similar to below:
Hardening the Web Server Continue reading
To change the hostname on you Linux server you can follow any of the below methods:
hostnamectl set-hostname <hostname>
nmtui is a great utility which can help you not oly change the hostname but changing other network management properties like editing a connection configuration and enabling and disabling it. Continue reading