PHP compiled as a httpd module
PHP relies on httpd and mariadb
./configure
--prefix=/usr/local/php Default installation directory
--with-mysql=/usr/local/mysql MySQL installation directory
--with-mysqli=/usr/local/mysql/bin/mysql_config another access interface for MySQL
--with-apxs2=/usr/local/apache/bin/apxs HTTPD2 Interface
--enable-mbstring Multi-byte support
--with-freetype-dir supports FreeType fonts
--with-jpeg-dir supports direct generation of JPEG images
--with-png-dir supports direct generation of PNG images
--with-zlib Support Compression
--WITH-LIBXML-DIR=/USR relies on Xml2-demo
--enable-xml supporting the processing of XML documents
--enable-sockets Enable socket
--with-mcrypt relies on Lib-crypt, which is found in the Epel source.
--with-bz2
--with-config-file-path=/etc/php/php.ini Master configuration file path
--WITH-CONFIG-FILE-SCAN-DIR=/ETC/PHP.D scan all files ending with. ini in the specified path
Then make && make install
Editing the httpd configuration file allows Apache to support PHP
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; border-bottom:0px; border-left:0px; Display:inline "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/79/12/ Wkiol1ahyytbn7ukaabyajvihc4069.png "" 465 "height="/>
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; border-bottom:0px; border-left:0px; Display:inline "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/79/13/ Wkiom1ahywtjxg-paac4ou8bwg4709.png "" 468 "height="/>
Copy the configuration files in the PHP installation directory into the/etc/php directory
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; border-bottom:0px; border-left:0px; Display:inline "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/79/12/wKioL1aHyyfCZx5IAABrPvHZo_ E980.png "" 471 "height="/>
Change time zone to Asia/Shanghai
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; border-bottom:0px; border-left:0px; Display:inline "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/79/12/wKioL1aHyyjAgikgAACW_ 2r54-c829.png "" 424 "height="/>
New index.php in HTTPd's Htdoc.
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; border-bottom:0px; border-left:0px; Display:inline "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/79/13/ Wkiom1ahywjjd8f4aaaxp0dfl-o183.png "" 339 "height="/>
View Results
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; border-bottom:0px; border-left:0px; Display:inline "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/79/13/ Wkiom1ahywqzctojaab9odritlc772.png "" 508 "height=" 149 "/>
Test the connection to the database
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; border-bottom:0px; border-left:0px; Display:inline "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/79/12/ Wkiol1ahyzdcqfsjaabbhzcwv8i920.png "" 479 "height=" 164 "/>
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; border-bottom:0px; border-left:0px; Display:inline "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/79/13/ Wkiom1ahyxcrmbcuaaa45dkjhee787.png "" 372 "height=" "/>
The phpMyAdmin can be loaded
XCache can speed up dynamic Web pages
Run/usr/local/php/bin/phpize directly
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; border-bottom:0px; border-left:0px; Display:inline "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/79/12/ Wkiol1ahyzlynaduaaa7s5ni4om800.png "" 534 "height="/>
PHP takes FPM as an independent and daemon process
Parameters for compilation
--with-apxs2=/usr/local/apache/bin/apxs HTTPD2 Interface
Into
--enable-fpm
./configure--prefix=/usr/local/php--with-mysql=/usr/local/mysql--with-mysqli=/usr/local/mysql/bin/mysql_config --ENABLE-FPM--enable-mbstring--with-freetype-dir--with-jpeg-dir--with-png-dir--with-zlib--with-libxml-dir=/usr --enable-xml--enable-sockets--with-bz2--with-config-file-path=/etc/php/php.ini-- With-config-config-file-scan-dir=/etc/php.d
Create PHP folder in/etc, php.d folder
Copy the installation directory from php.ini-production to etc in PHP
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; border-bottom:0px; border-left:0px; Display:inline "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/79/13/ Wkiom1ahyxts5crsaabszc8io5g925.png "" 510 "height="/>
Copy the init.d.php.fpm file from the SAPI/FPM to the boot folder
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; border-bottom:0px; border-left:0px; Display:inline "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/79/12/wKioL1aHyzeDJTSaAACh2U_ V10y447.png "" 529 "height="/>
Give it permission to X
And then start
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; border-bottom:0px; border-left:0px; Display:inline "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/79/13/ Wkiom1ahyxfhrpf8aaagstfedgw843.png "" 226 "height="/>
Copy the attachments of the edited/usr/local/php/etc Php-fpm.conf.default
Modifying the values of the PID
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; border-bottom:0px; border-left:0px; Display:inline "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/79/13/ Wkiom1ahyxnjthryaab5-ny6lom206.png "" 492 "height=" 136 "/>
To modify the value of the error log
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; border-bottom:0px; border-left:0px; Display:inline "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/79/12/ Wkiol1ahyzuwnpjjaabmg2nihzu877.png "" 367 "height="/>
Start Process Service PHP-FPM start
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; border-bottom:0px; border-left:0px; Display:inline "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/79/12/ Wkiol1ahyz3ahticaabsuqbjwq8805.png "" 454 "height="/>
Edit httpd.conf, enable Proxy and proxy-fcgi
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; border-bottom:0px; border-left:0px; Display:inline "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/79/13/ Wkiom1ahzz2h5utcaab-y-wbqt0810.png "" 468 "height="/>
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; border-bottom:0px; border-left:0px; Display:inline "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/79/12/wKioL1aHzb_ Rpc7xaabo3poydfy657.png "" 463 "height="/>
OK
650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; border-bottom:0px; border-left:0px; Display:inline "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/79/12/ Wkiol1ahzxpjsjilaaajo0gvtwq931.png "244" height= "/>"
Compiling and installing php5.6