Apache Server Installation and configuration

Source: Internet
Author: User

One, Apache server

Today, Web servers can provide an extremely rich content service, and Apache is almost the only Web server in the mainstream Linux system

Thing

Second, install and configure Apache server

2.1 Installing the HTTPD server

650) this.width=650; "title=" 1.jpg "src=" Http://s3.51cto.com/wyfs02/M02/78/40/wKiom1Z47rbiZj4YAAC_tXtPm2g307.jpg " alt= "Wkiom1z47rbizj4yaac_txtpm2g307.jpg"/>

2.2 Start the HTTPD service and test

2.2.1 Starting the Apache server

650) this.width=650; "title=" 1.jpg "src=" Http://s1.51cto.com/wyfs02/M01/78/3F/wKioL1Z4773gxWvBAAAzOcAdmMk392.jpg " alt= "Wkiol1z4773gxwvbaaazocadmmk392.jpg"/>

2.2.2 Viewing httpd server processes

650) this.width=650; "title=" 1.jpg "src=" Http://s3.51cto.com/wyfs02/M00/78/40/wKioL1Z48R3AL0AEAABIR4ICKPU222.jpg " alt= "Wkiol1z48r3al0aeaabir4ickpu222.jpg"/>

2.2.4 Viewing httpd port status

650) this.width=650; "title=" 1.jpg "src=" Http://s5.51cto.com/wyfs02/M02/78/40/wKioL1Z48m2i8pGBAABs8iJVg4c309.jpg " alt= "Wkiol1z48m2i8pgbaabs8ijvg4c309.jpg"/>

2.2.5 View run status

650) this.width=650; "title=" 1.jpg "src=" Http://s4.51cto.com/wyfs02/M00/78/40/wKioL1Z485GjH3acAAA6g7AZG0s086.jpg " alt= "Wkiol1z485gjh3acaaa6g7azg0s086.jpg"/>

2.2.6 using a browser for detection

650) this.width=650; "title=" 1.jpg "src=" Http://s5.51cto.com/wyfs02/M01/78/40/wKioL1Z49HXw8qxuAAAqMzHmwI8179.jpg " alt= "Wkiol1z49hxw8qxuaaaqmzhmwi8179.jpg"/>

2.2.7 Setup with system boot

650) this.width=650; "title=" 1.jpg "src=" Http://s4.51cto.com/wyfs02/M00/78/40/wKioL1Z49MrAgFc2AAAgRJKeOMs815.jpg " alt= "Wkiol1z49mragfc2aaagrjkeoms815.jpg"/>

2.2.8 Modifying a configuration file

650) this.width=650; "title=" 1.jpg "src=" Http://s2.51cto.com/wyfs02/M00/78/42/wKiom1Z49_iwaokEAAAvXuxLm54125.jpg " alt= "Wkiom1z49_iwaokeaaavxuxlm54125.jpg"/>

2.3.1Apache Server directory and file distribution

The directory where the/etc/httpd/* configuration file is located, where the Conf subdirectory contains the master configuration file, and the CONF.D subdirectory contains a variety of modules

The file is placed.

/var/www/html Document root directory

/usr/lib/httpd/modules/* contains module files that can be dynamically loaded

/var/log/httpd/* contains Access_log access log files and Error_log error log files

/ETC/RC.D/INIT.D/HTTPD Shell startup file

/VAR/RUN/HTTPD.PID httpd Process ID file

This article from "Blog War" blog, reproduced please contact the author!

Apache Server Installation and configuration

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.