One: How the Web server connects to the PHP interpreter
There are two ways to connect PHP to the server.
1 "Connect via SAPI module
For many servers, PHP has a direct module interface (also called SAPI). These servers include Apache, Microsoft Internet Information Server, Netscape, and IPlanet. Many other servers support ISAPI, the Microsoft Module interface (OMNIHTTPD is an example).
2 is handled by PHP CGI
If PHP cannot support a Web server as a module, it can always be used as a CGI or FastCGI processor. This means you can use PHP's CGI executable to process PHP file requests on all servers.
Two: Install PHP
The initial configuration and installation process of PHP is controlled by a series of command-line options in the configure script. All available compilation options and short explanations for PHP can be learned through the ./configure--help Command
Note:
PHP Core configuration options Description: http://php.net/manual/zh/configure.about.php
installation GCC-4.6.1 Detailed tutorial: http://blog.163.com/phys_atom/blog/static/1676445532012229814992/
Getting Started with GCC: http://developer.51cto.com/art/200609/32317.htm
PHP Manual Summary "Installation and Configuration"