1. Introduction to the EnvironmentSystem: 2.6.32-279.el6.i6862. Preparing the compilation environmentYum " Server Platform Development " " Development Tools " -yuminstall pcre-devel-y3. Download and install required software[Email protected] ~]# cd/
Nginx does not support calls to external programs, so calls to external programs must be implemented via the FASTCGI interface to handle client dynamic page requests. The English language of CGI is all called Common Gateway Interface (Public Gateway
Since the httpd2.4 version is based on the APR-1.4 version, the APR version in CENTOS6 is 1.3, so if you want to install the httpd2.4 version in CENTOS6, compile and install the apr-1.4 version first.The first part installs the apr-1.4+
The
PHP has three modes of collaboration with Apache: CGI, Modules, FastCGI.In CGI mode, when a user requests a PHP file, Apache initiates the response process, invokes the PHP processor to process the request, and then returns the result to the client.
Preface: APR (Apache portable run-time Libraries,apache Portable runtime) primarily provides an underlying support interface library for upper-level applications that can be used across multiple operating system platforms. In earlier versions of
1. Environment Readiness:Using the CTOS1 virtual machine, open and confirm that the IP address is 192.168.100.150, the gateway is 192.168.100.100,dns to 192.168.100.100.Set host Name:[Email protected] ~]# Cat/etc/sysconfig/network #
Mount the image into the Cd/media CD packageRPM-IVH gcc Finish installation completed.1. Download the tar httpd first. GZ to root host directoryThe first step is to unpack the tar-zxvf httpd suffix named tar. Gz2-c Specify the location I usually
CentOS 6.9(1) Turn off SELinux
Note: If you do not turn off SELinux, there may be unpredictable problems such as forbidden when setting documentroot.
#sed -i ‘s/^SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config`(2) Turn off
**CENTOS6 Compile and install httpd-2.4 method two1. Install the first shutdown package group and the dependent package:#yum-y groupinstall Development tools#yum-y install Openssl-devle pcre-devel expat-devel 2. Download the source package:
1. Prepare the source package and configure the Yum source. , the required source package includes: httpd-2.4.18, apr-1.5.2.tar.gz, apr-util-1.5.4.tar.gz2. Prepare the userGroupadd-r ApacheUseradd-r apache-g apache-s/sbin/nologin3. Prepare the
Compile httpd2.4 "Note: httpd2.4 relies on Apr 1.4+ above, apr-util-1.4+ above" 1, unzip the package to any directory tar apr-1.6.3.tar.bz2 tar apr-util-1.6.1.tar.bz2 tar httpd-2.4.29.tar.bz22, copy the APR and apr-util the entire unpacking
1. Web site service ApacheApache Introduction:Open source, cross-platformSupports multiple Web programming languagesModular design• Source code compilation, installationtar zxf httpd-xxoo. Tar . GZCD httpd.
Compile and install lamp combinations:There are two ways to integrate httpd+php:1.modules: Compile PHP into HTTPD's DSO object;Prefork:libphp5Event, Worker:libphp5-zts--enable-maintainer-zts2.FPM (fastcgi): PHP as a standalone serviceHTTPD support
Installing the Package CompilerGcc-v See if there are anyYum Install GCC gcc-c++ MackRpm-q httpd to see if HTTP is installedRPM-E httpd--nodeps Uninstalling packages and dependenciesTAR-ZXF apr-1.5.1.tar.gz Extract Apr PackageCD apr-1.5.1./configure-
Installing httpd-2.4dependent on apr-1.4+, apr-util-1.4+, [Apr-iconv]Apr:apache portable runtime to solve cross-platform implementationsCentOS 6: Default: apr-1.3.9, apr-util-1.3.9To prepare the development package before installation:Development
Brief introductionVirtual host refers to a certain amount of disk space on the network server, the administrator can take advantage of this part of the space, put the site and application components, provide the necessary data storage and
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.