Difference between revisions of "PHP-FPM"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
(a how-to link)
(diagnosis path)
 
(One intermediate revision by the same user not shown)
Line 16: Line 16:
 
* [[URL::http://php-fpm.org/|official site]]
 
* [[URL::http://php-fpm.org/|official site]]
 
** [http://us.php.net/manual/en/install.fpm.php current documentation] (on the official PHP site)
 
** [http://us.php.net/manual/en/install.fpm.php current documentation] (on the official PHP site)
 +
* '''nginx documentation''':
 +
** [http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html Module ngx_http_fastcgi_module]
 +
*** [http://wiki.nginx.org/HttpFastcgiModule wiki page]
 +
** [http://wiki.nginx.org/FcgiExample FastCGI example]
 
* '''Tutorials''':
 
* '''Tutorials''':
 
** [http://www.howtoforge.com/installing-php-5.3-nginx-and-php-fpm-on-ubuntu-debian Installing PHP 5.3, Nginx And PHP-fpm On Ubuntu/Debian]
 
** [http://www.howtoforge.com/installing-php-5.3-nginx-and-php-fpm-on-ubuntu-debian Installing PHP 5.3, Nginx And PHP-fpm On Ubuntu/Debian]
 
==Notes==
 
==Notes==
 
* [[User:Woozle/nginx]]: trying to repair a borked [[PHP-FPM]] installation
 
* [[User:Woozle/nginx]]: trying to repair a borked [[PHP-FPM]] installation
 +
** The connection chain seems to go like this: [web server] <=:FastCGI:=> [PHP-FPM] <=> [php]
 +
** You can problem-isolate by removing PHP-FPM from the chain: [web server] <=:FastCGI:=> [php-cgi]
 +
*** If PHP still doesn't respond to web requests, you can see what the web server is sending by running [[User:Woozle/port listener|this script]].
 +
**** FastCGI can connect via a [[UNIX pipe]] or a network port, but the above code is written for a port.

Latest revision as of 20:34, 24 June 2012

About

PHP-FPM is a process manager for PHP. It is useful as part of the interface between PHP and the web server software (WSS), especially when the WSS does not have an option to integrate directly with PHP.

Common Uses

Links

Notes

  • User:Woozle/nginx: trying to repair a borked PHP-FPM installation
    • The connection chain seems to go like this: [web server] <=:FastCGI:=> [PHP-FPM] <=> [php]
    • You can problem-isolate by removing PHP-FPM from the chain: [web server] <=:FastCGI:=> [php-cgi]
      • If PHP still doesn't respond to web requests, you can see what the web server is sending by running this script.
        • FastCGI can connect via a UNIX pipe or a network port, but the above code is written for a port.