Apache Source code Compilation installation

Source: Internet
Author: User

Essence Preface:

Parsing Java programs by: Tomcat, resin, WebLogic, JBoss

Parsing. ASP. aspx programs by: Pws,iis Back-end Database: SQL server,access


IP PV UV:

Ip:internet Protocol--internet Protocol

Pv:page View--visitor volume

Uv:unique Visitor--independent visitors


Simply introduce cookies:

Cookies: When visiting a website, the website will send you a cookie, a unique


What is concurrency:

A. The maximum number of user requests per second that the Web server receives

B. Number of requests per second that the Web server responds to

C.a+b

Concurrency Understanding: The maximum number of connections the server can handle concurrently


The mainstream of the Web services market:

static Web services: Apache,nginx,iis,lighttpd,tengine

Dynamic Web Services: Tomcat (SME), resin (big business), PHP

==================================================================

PHP (gcgi) with apache,php not daemon, but mod_php5.so (module)

With nginx,lighttpd,php daemon mode, Fcgim mode.

==================================================================

Apache Features: Stable point, safe, simple configuration, fast, reliable performance, can do proxy server and load balancer to use.


# RPM-E--nodeps + Services--Uninstall service

====================================================================

Compile and install Apache


To install the Apache dependency package:

Yum install zlib zlib-devel-y installs Apache dependency package

Apache Official Website: (RPM package on the official website download)

https://www.apache.org/


Extract:

#tar XF httpd-2.2.27.tar.gz


#cd httpd-2.2.27/

#./configure \

--prefix=/application/apache2.2.27 \ Installed Directory

--enable-deflate \

--enable-expores \ Cache How long

--enable-headers \ HTTP Header

--enable-modules=most \ Activating HTTP Module

--ENABLE-SO \

--with-mpm=worker \ Concurrency Large

--enable-rewrite Pseudo-Static


# echo $? Return 0, no mistake.

# Make & make Install

Start the service:
#/application/apache/bin/apachectl-start

View 80 port look httpd up No

# Lsof-i: 80

To track the progress of a process:

# strace/application/apache/bin/apachectl-m


What is a virtual host:

1: Domain-based

2: IP-based

3: Port-based

=======================================================

Gca

Domain Name site

www.a.org /var/html/a/

www.b.com /var/html/b/

www.c.cn/var/html/c/


To edit a configuration file, configure the virtual host:

# Vim/application/apache/conf/extra/httpd-vhost

<virtualhost *:80>

ServerAdmin [email protected]

DocumentRoot "/var/html/a"

ServerName www.a.org

Serveralias a.org

Errorlog "Logs/www-error_log"

Customlog "Logs/www-access_log" common

</VirtualHost>


<virtualhost *:80>

ServerAdmin [email protected]

DocumentRoot "/var/html/b"

ServerName www.b.org

Serveralias b.org

Errorlog "Logs/www-error_log"

Customlog "Logs/www-access_log" common

</VirtualHost>


<virtualhost *:80>

ServerAdmin [email protected]

DocumentRoot "/VAR/HTML/C"

ServerName www.c.org

Serveralias c.org

Errorlog "Logs/www-error_log"

Customlog "Logs/www-access_log" common

</VirtualHost>

three hosts configured above, Access # Curl www.a.org wait for three pages to do the test


To edit the master configuration file:

# vim/application/apache/conf/httpd.conf

Include conf/extra/httpd-vhosts.conf-Open (commented out by default)

Include conf/extra/httpd-mpm.conf


Edit Master configuration Add a container

# vim/application/apache/conf/httpd.conf

<directory "/var/html" >

Options FollowSymLinks

AllowOverride None

Order Allow,deny

Allow from all

</Directory>


Check syntax:

#/application/apache/bin/apachectl-t

Smooth restart, equivalent to reload:

#/application/apache/bin/apachect Graceful


Apache Log Format:

Common log format (common log formats)

Combined log format (combined log formats)


Apache Log Polling

1. Installation Tool Cronolog

2. Unzip the tar zxvf cronolog ....

3.#./configure Make & make Install

4.# Ll/usr/local/sbin/cronolog




Alex will update the following PHP error resolution for you, I hope that the above blog for Linux enthusiasts to use ~ ~


Linux Operational Communication Group: 288746884


This article is from the "11794562" blog, please be sure to keep this source http://11804562.blog.51cto.com/11794562/1899628

Apache Source code Compilation installation

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.