What is FastCGI? I plan to use Nginx & nbsp; + & nbsp; Linux & nbsp; as the frontend, ASP. NET and windows & nbsp; in the background, do you need fastcgi, & nbsp; what is fastcgi and what is it for? I checked it online, but what is FastCGI?
I
1. cgi (Common Gateway Interface/Common Gateway Interface) is generally executable
Program For example, the EXE file and the Web server occupy different processes. Generally, a CGI program can only process one user request. In this way, when the
First, the user on the dynamic PHP Web Access processUser browser initiates access to a webpage: http://192.168.1.103/index.phpUser and Nginx server three handshake for TCP connection (ignoring including Nginx access control policy, Nginx Firewall
Fixed the PHP iconv and the GD library conflict Bug, added PHP mcrypt, memcache extension, modified PHP and Nginx compile parameters, optimized Nginx profile, added some features.
Nginx
("Engine X") is a high-performance HTTP and reverse proxy
We know that there are several PHP configurations:
1, the CGI load PHP environment, is usually IIS inside the configuration interpreter for Php.exe, early more common, currently use less.Characteristic is: stable, but the efficiency is too low.
2,
First, the user on the dynamic PHP Web Access processUser browser initiates access to a webpage: http://192.168.1.103/index.phpUser and Nginx server three handshake for TCP connection (ignoring including Nginx access control policy, Nginx Firewall
To optimize the performance parameter settings, add the FastCGI parameter to the HTTP layer of ngnix. conf as follows:HTTP {Fastcgi_cache_path/usr/local/nginx/fastcgi_cache levels = keys_zone = test: 10 m inactive = 5 m;Fastcgi_connect_timeout = 300;
Document directory
Preface
Development Framework
Nginx Installation
Nginx Configuration
Start and restart nginx
Spawn-fcgi
Fast-CGI Service Program Development
Test
Preface I have collected a lot of related articles on the Internet. The
In Windows IIS 6.0, PHP is usually configured in CGI, ISAPI, and FastCGI. These three modes can be successfully run in IIS 6.0, the following describes the differences in configuration and performance of the three methods.
1. CGI (Common Gateway
The front-end of an application is an nginx server. All static content is processed by nginx, all PHP requests are distributed to several downstream servers running the PHP FastCGI daemon. In this way, the system load can be apportioned in a cheap
I have been studying programming in UNIX environments recently and decided to write several FastCGI codes in C.
Program And strive for future use
C Language Allows you to access gadgets such as embedded devices and PDAs through a browser ~ It will
There are many articles about Apache fastcgi module installation instructions on the Internet, most of them are based on the Apache source code compiled, if it is installed by Yum install httpd, directly according to gourd painting Scoop will
We know several php configurations:1. Cgi PHP environment. Generally, php.exe is used as the interpreter in iis.Features: stability, but low efficiency.2. The ISAPI method is used to load the PHP environment. The configuration interpreter in IIS is
Setting the Environment:Centos7apache/2.4.6fastcgi2.4.6Rails4A problem was encountered while installing FASTCGI:Problem:。。。。。。In file included from fcgi.h:28:0,From mod_fastcgi.c:72:/usr/include/httpd/http_log.h:456:18:note:expected ' const struct
Since Microsoft has gradually started to focus on the application of PHP on Windows, has launched the Microsoft Web platform,php Manager and other IIS platform tools, x86 and x64 system can be used, and no longer have to configure PHP on IIS to
Because the production environment is FreeBSD platform, before also wrote a FreeBSD installation mysql5.1.70+php5.2.17 (FastCGI) + nginx1.0.1 high-performance Web server, there are children's shoes want to help write an article on the installation
There are three ways to build a PHP environment on IIS, and the pros and cons are as follows:
1, the CGI load PHP environment, is usually IIS inside the configuration interpreter for Php.exe, early more common, currently use less. Characteristic is:
1, the CGI (Universal Gateway Interface/common Gateway Interface) is generally executable programs, such as EXE files, and the Web server each occupy a different process, and generally a CGI program can only handle a user request. In this way, when
Configure PHP under Windows IIS 6.0, usually with CGI, ISAPI, and fastcgi three configurations, all three of which can run successfully under IIS 6.0, and I'll talk about the difference and performance of these three configurations.
1, the CGI
Nginx 0.7.x + PHP 5.2.6 (FastCGI) + MySQL 5.1 in 128M Small memory VPS Server Configuration Optimization Large | Medium | Small [2008-10-28 16:55 | by Zhang Banquet] [Article Zhang Banquet this version: v1.0 last modified: 2008.10.28 reproduced
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.