We use cookies
We use cookies to optimize our website. By continuing to browse the site, you agree to our use of cookies.
New design
Control panel
  • Русский
  • Українська
  • English
  • UAH
  • USD
  • RUB
  • EUR
  • 0-800-307-307 Hotline
  • +38 (044) 392-74-33 Kiev
  • +38 (057) 728-39-00 Kharkiv
  • +38 (056) 794-38-31 Dnipro
  • +38 (032) 229-58-93 Lviv
  • +38 (048) 738-57-70 Odessa
  • +38(093) 170-15-42  Life
  • +38 (067) 400-88-44 Kievstar
  • +1(888)393-24-51  USA, Toll free
  • +44(131)507-01-14  Great Britain
  • +7 (499) 348-28-61 Moscow

2.23.12. PHP-FPM

Attention!

PHP-FPM is only available on businesshosting.

PHP-FPM (FastCGI Process Manager) is an alternative implementation of FastCGI mode in PHP. In conjunction with nginx, it provides a higher request processing speed than the default nginx + Apache bundle.

  • Can be used PHP version not lower than 7.0.
  • .Htaccess rules don't apply.
  • PHP-FPM processes are constantly running and consume memory, which is counted in the hosting account quota. With a large number of concurrent requests, a large amount of RAM may be required.
  • PHP only processes files with the extension .php.
  • The standard index file is index.php... For comparison: on request to /html/ Apache will return the contents of the file /html/index.htmlif it exists, and PHP-FPM will return a 403 error in such a situation if the directory /html/ exists, or will send a request to /index.phpif directory /html/ does not exist. When choosing PHP-FPM configuration «Dokuwiki»The standard index file will be doku.php.
  • Routes are configured as follows:
    • If the call goes to a specific file with the extension .php - this file is launched (for example, a request to /path/test.php runs the file /path/test.phpif such a file does not exist - the error is returned “File not found»).
    • If the call goes to URL existing directory - starts index.php from that directory (e.g. request to /wp-admin/ runs the file /wp-admin/index.phpif file index.php not in directory - 403 error is returned).
    • All other requests are redirected to /index.php (requested URL will be available in $_SERVER['REQUEST_URI']).

After changing the web server to PHP-FPM, it becomes possible to select one of the available configuration options:

  • «Default"- no special settings, all requests are redirected to /index.php... Suitable for CMSthat do not require specific settings, for example Joomla! or Octoberas well as frameworks Symfony and Laravel.
  • «Wordpress"- currently the same as"Default". Perhaps, special settings will be added in the future.
  • «Opencart"- support for CNC in the format OpenCart.
  • «Dokuwiki"- index file doku.php instead index.php, support for CNC format DokuWiki, blocking access to directories /conf/, /bin/, /inc/ and file /install.php.
  • «ModX"- support for CNC in the format MODX.
  • «Moodle"- support URL kind /index.php/path for Moodle.

To activate PHP-FPM, do the following:

  1. Check out features of PHP-FPM and make sure your site takes them into account.
  2. Openup site settings.
  3. For the parameter "Web server "Set the switch opposite to"PHP-FPM", Opposite"PHP-FPM configuration»Select the required configuration and at the bottom of the page, click “Save»:
  4. Wait approximately 10-15 minutes for the changes to take effect.