A: An introduction to Apache
Apache HTTP Server (Apache) It is the world's first open source software for Web servers. It can run on almost any widely used computer platform and is widely used because of its cross-platform and security.
II: Features of the Apacheweb server
1, support the latest http/1.1 communication protocol
2. Have a simple and powerful file-based configuration process
3. Support Universal Gateway Interface
4. Support IP-based and domain-based virtual hosts
5. Support HTTP authentication in many ways
6. Integrated Perl processing module
7. Integrated Proxy Server Module
8. Support real-time monitoring of server status and custom server logs
9. Support server-side include directive (SSL)
10. Support Secure Socket Layer (SSL)
11, provide the user session process tracking
12, Support fastcgi
13, through the third-party module can support javaservlets
After installing the operating system, according to your preferences can install some auxiliary tools, in order to download software convenient, I will install wget RZ and other ancillary tools, direct yum install wget lrzsz-y
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7D/18/wKioL1bf5QmyslzOAAAVgNxmN38058.png "title=" Qq20160309164926.png "alt=" Wkiol1bf5qmyslzoaaavgnxmn38058.png "/>
Download Apache after installation (if you need to use dynamic encryption it is best to download a OpenSSL)
cd/data/
wget http://mirrors.cnnic.cn/apache//httpd/httpd-2.2.31.tar.gz
wget http://www.openssl.org/source/openssl-1.0.1s.tar.gz
[[email protected] data]# ls
httpd-2.2.31.tar.gz Lost+found openssl-1.0.1s.tar.gz
With the LS command to view, the file has been downloaded well, below we compile the installation
[Email protected] data]# Tar XF openssl-1.0.1s.tar.gz
[[email protected] data]# ls
httpd-2.2.31.tar.gz Lost+found openssl-1.0.1s openssl-1.0.1s.tar.gz
[Email protected] data]# CD Openssl-1.0.1s
[[email protected] openssl-1.0.1s]# ls
Acknowledgments changes. Ssleay Doc Install install. VMS Makefile Netware README Times
Apps config engines install.com install. W32 Makefile.bak NEWS README. ASN1 Tools
Appveyor.yml Configure e_os2.h INSTALL. DJGPP INSTALL. W64 makefile.org openssl.doxy README. ENGINE util
Bugs contributing E_os.h INSTALL. MacOS INSTALL. WCE makefile.shared Openssl.spec shlib VMS
Certs Crypto FAQ INSTALL. NW LICENSE makevms.com OS2 SSL
Changes demos include INSTALL. OS2 MacOS ms Problems test
[Email protected] openssl-1.0.1s]#/config--prefix=/usr/local/ssl--shared
[[email protected] openssl-1.0.1s]# make && make install
echo/usr/local/ssl/lib/>>/etc/ld.so.conf
Ldconfig
[Email protected] openssl-1.0.1s]# CD.
[[email protected] data]# ls
httpd-2.2.31.tar.gz Lost+found openssl-1.0.1s openssl-1.0.1s.tar.gz
[Email protected] data]# Tar XF httpd-2.2.31.tar.gz
[[email protected] data]# ls
httpd-2.2.31 httpd-2.2.31.tar.gz lost+found openssl-1.0.1s openssl-1.0.1s.tar.gz
[Email protected] data]# CD httpd-2.2.31
[Email protected] httpd-2.2.31]#/configure--prefix=/usr/local/apache2--enable-so--enable-rewrite--enable-ssl-- With-ssl=/usr/local/ssl
--enable-so means loading the DSO module without actually compiling any dynamic modules
--enable-rewrite Enable override Feature
[[email protected] httpd-2.2.31]# make && make install
[[email protected] httpd-2.2.31]#/usr/local/apache2/bin/apachectl start
[Email protected] httpd-2.2.31]# NETSTAT-TLNP | grep 80
TCP 0 0::: +:::* LISTEN 2784/httpd
In this case, the simple compilation installation is ready, the configuration file is/usr/local/apapche2/conf/httpd.conf, can be based on the needs of their company, referring to some of the online introduction to configure.
This article from "Mo On flower Hair" blog, declined reprint!
CentOS 6.3 Source code compile and install Apache