How to install and configure the Apache environment of the Amazon CentOS7 AMI

Source: Internet
Author: User
Tags ftp

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.