Close

RHCE – Setting up an Apache Web Server (httpd) on CentOS/RHEL 7

[post-content id=2754]

[post-content post_name=rhsca-quiz]


What is the command to install Apache web server?

$ yum group install ‘Basic Web Server’

What is the commadn to install a few text based web browsers?

$ yum install elinks lynx

What is the command to start+enable the apache service?

$ systemctl start httpd
$ systemctl enable httpd

What is the command to open up the firewalls?

$ firewall-cmd –add-service=http
$ firewall-cmd –add-service=https
$ systemctl restart firewalld