What is PHP FastCGI?

2010-08-30  来源:本站原创  分类:OS  人气:170 

Original link: http://www.php-oa.com/2008/03/22/php-fastcgi.html

FastCGI

PHP's FastCGI so that all of your php applications run by mod_fastci, not mod_phpsusexec. FastCGI applications are fast because they are long-lasting stability. Do not need to start and each request is initialized. This makes application development possible, otherwise the CGI paradigm is unrealistic (for example, a large script, or a need to connect single or multiple database applications).

Benefit

  1. PHP scripts run faster (3-30 times). PHP interpreter is loaded into memory rather than read from memory each time you need, rely greatly improved the performance of the site script.
  2. Need to use less system resources. As the server each time you need not load PHP interpreter, you can transfer the site to enhance high speed without increasing the burden cpu.
  3. Does not require any change in existing code. Are applicable to all existing PHP's FastCGI

Potential problems

    • For all subdirectories (/ home / USERNAME / public_html / php.ini) you have only one php.ini file available. It is necessary to optimize your website code. If you need multiple php.ini files to accommodate different scripting needs, you can disable any subdirectory fast PHP CGI, and the rest of the place continues to have effect. If you need to do this, please contact support.
    • PHP environment you have to do any upgrades (such as the php.ini file to change) have a few minutes delay. This is because the faster speed for your php.ini file has been loaded into memory, rather than every time when the need arises to re-read from the memory.
相关文章
  • lighttpd + fastcgi built a server how to preserve the status of server 2009-02-28

    Requirements: server-side has much static files, there is much use of c + + to prepare the operational components necessary to carry out these functions on the external packaging Published Service, server-side state required to preserve the client (s

  • mac using macport install lighttpd + php + fastcgi + freetds Notes 2009-03-09

    1. Macports installation 2. Update port sudo port selfupdate 3. Install FreeTDS sudo port -v install freetds +mssql + mssql can at compile-time setting tds version defaults to 8.0. php version if less than a database connection 4. Install php5-cgi su

  • Concise Windows, lighttpd, fastcgi, php5 Web server configuration 2009-03-14

    1. Install Lighttpd a. to download http://wlmp-project.net Windows version of Lighttpd (WLMP Project) And installation, can be installed to any directory; b. Test whether the installation is successful. Lighttpd installation directory to run under Te

  • WLMP [windows + lighttpd + mysql + php (fastcgi)] set up the environment 2009-06-22

    PHP is not my favorite, but java is more tired, ruby, python is a very beautiful beautiful, but for the present work Hard , PHP is simple, and PHP + Flex to do something really out of Cool, it was decided after the main PHP + Flex. Said the following

  • On FastCGI 2009-07-08

    FastCGI technical principle If you want to understand the technical principles of FastCGI necessary to understand what is meant by "short survival time of application," What is the "survival time applications." CGI technology from surg

  • lighttpd + fastcgi of django deployment 2009-09-26

    Robbin in reference to "Linux platform to install and configure Ruby on Rails explain" some of the contents: http://www.javaeye.com/topic/43228 This article has been assumed that the correct installation of python and django, system for ubuntu9.

  • Lighttpd + FastCGI + Ubuntu + Rails2.3 set record 2009-10-27

    BLOGSPOT at GOOGLE had to engage in a BLOG, toss a good few, BLOGSPOT be the result of the shield is [email protected]#$%^%&^&^&& A lot of prior research related materials, a lot of summing up this site. First installed RUBY, RAILS2.3 skip, etc. PCRE ins

  • apache to run php fastcgi 2010-03-12

    Get a morning, has finally put this to the buttoned up, alas. First install the mod_fastcgi. wget http://www.fastcgi.com/dist/mod_fastcgi-SNAP-0811090952.tar.gz Inside INSTALL.AP2 do according as dso join httpd, I am here to apache path is directly f

  • CentOS under the rails + lighttp + fastcgi + mysql installation deployment Record 2010-03-29

    Installation reference robbin article: In the Linux platform, install and configure Ruby on Rails Xiangjie. Regarding the installation steps and parameters used, the robbin's article has a very detailed description, I no longer copy and paste here, a

  • CentOS configure lighttpd / fastcgi environment (2) 2010-03-25

    In fastcgi lighttpd developed two libraries a program needs to be installed, install the development libraries 1) fcgi http://fastcgi.com/dist/fcgi-2.4.0.tar.gz fcgi to handle the request fastCGI 2) rudeCGI http://rudeserver.com/cgiparser/download/ru

  • Nginx php-fpm fast-cgi 502 Bad Gateway Error Handling 2010-03-18

    Nginx php-fpm fast-cgi 502 Bad Gateway error is FastCGI problems, resulting in the possibility of error NGINX 502 more. Some will find on the Internet and 502 Bad Gateway error-related problems and troubleshooting methods listed about, starting with

  • FastCGI Reference Manual 2010-04-09

    FastCGI Reference Manual Theme FastCGI Reference Manual (Perl language-related parts) On the hoowa. Sun From www.perlchina.org Everyone must have a common understanding of CGI technology and efficiency of how bad. Then all the contents of this articl

  • ubuntu server install RoR and Lighttpd, Fastcgi 2010-04-09

    ubuntu server install RoR and Lighttpd, Fastcgi Author: guoshuang This two-day need to ubuntu server via ssh to install ruby on rails support the environment, to install mysql, and use lighttpd and fastcgi support web. Server ubuntu6.10, root as logi

  • FastCGI learning summary 2010-04-09

    FastCGI learning summary Of: Jimmy Cao, 2008 / 9 All Rights Reserved learn together and progress, reproduced please specify What is FastCGI FastCGI: Fast Common Gateway Interface (Fast Common Gateway Interface), which is an enhanced version of CGI. F

  • FastCGI Developer Kit 2010-04-20

    FastCGI Developer Kit Documentation FastCGI Technical White Paper Motivates FastCGI, then explains FastCGI interfaces, FastCGI application roles, FastCGI application library, the server on the support FastCGI, and FastCGI performance. Understanding F

  • FastCGI specification 2010-04-20

    FastCGI specification FastCGI specification Mark R. Brown Open Market, Inc. Document Version: 1.08 April 29, 1996 Copyright © 1996 Open Market, Inc. 245 First Street, Cambridge, MA 02142 USA Tel: 617-621-9500 Fax: 617-621-1703 URL: http://www.openmar

  • Understanding FastCGI Application Performance 2010-04-20

    Understanding FastCGI Application Performance Understanding FastCGI Application Performance Mark R. Brown Open Market, Inc. June 10, 1996 Copyright © 1996 Open Market, Inc. 245 First Street, Cambridge, MA 02142 USA Tel: 617-621-9500 Fax: 617-621-1703

  • Ubuntu apache2 + fastcgi configuration under 2010-04-21

    Ubuntu apache2 + fastcgi configuration under Recently has been studying the unix programming environment, and decided to use C to write a few fastcgi, fighting for the future can use c language through a browser to access embedded devices, PDA and ot

  • FastCGI for concurrent processing 2010-04-22

    FastCGI for concurrent processing I have not found a way asynchronous processing. If there are asynchronous implementations, it can handle multiple concurrent single-threaded asynchronous request. However, the sample which I FastCGI found a way multi

  • Nginx configuration using multiple php fastcgi load balancing 2010-06-08

    Configuration is very simple, fully embodies the nginx configuration powerful and simple ^ ^ The following is a rough diagram server: Most front-end application is a nginx server, all the static content by nginx to handle, and all php requests are sp