PHP and FastCGI

From Resin 3.0

Jump to: navigation, search

PHP compilation

To use PHP in FastCGI mode, you need to compile it with --enable-fastcgi

> ./configure --enable-fastcgi
> make

PHP starting

You will need to start PHP in fastcgi mode and enable a number of concurrent processes.

> PHP_FCGI_CHILDREN=256 php -b localhost:6666

Note in particular that you may need to set the PHP_FCGI_CHILDREN environment variable. If that value is too low, PHP will not be able to handle multiple requests.

resin-web.xml configuration

<web-app xmlns="">
  <servlet servlet-name="php-fastcgi"

  <servlet-mapping url-pattern="*.php" servlet-name="php-fastcgi"/> 
Personal tools