After creating EC2 of the Amazon CentOS7 AMI, we found that the yum command was executed to install Apache.
According to the following results, Apache2.4.6 has been installed.
# Yum install httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* Base: www.ftp.ne.jp
* Epel: ftp.jaist.ac.jp
* Extras: www.ftp.ne.jp
* Rpmforge: ftp.riken.jp
* Updates: www.ftp.ne.jp
Package httpd-2.4.6-18.el7.centos.x86_64 already installed and latest version
Nothing to do
The configuration file is also in the/etc/httpd directory.
# Ll/etc/httpd
Total 4
Drwxr-xr-x. 2 root 35 Dec 31 16:16 conf
Drwxr-xr-x. 2 root 93 Dec 31 16:48 conf. d
Drwxr-xr-x. 2 root 4096 Dec 31 16:48 conf. modules. d
Lrwxrwxrwx. 1 root 19 Dec 31 logs->.../var/log/httpd
Lrwxrwxrwx. 1 root 29 Dec 31 16:16 modules->.../usr/lib64/httpd/modules
Lrwxrwxrwx. 1 root 10 Dec 31 16: 16 run->/run/httpd